Hey All,
I am developing on a project with FRDM-K64F and the SDK_2.2_FRDM-K64F.
For my control unit, I need the server side implementation of the WebSocket protocol. For a first entry, I took your lwIP_httpsrv demo application from the SDK.
My question:
Is it possible to set up multiple WebSocket connections with that demo? Until now, I was not able to get more than one session at the same time running.
Any experiences or ideas?
Best regards
Jan
Additional to my post:
If somebody wants to reconstruct the situation on the FRDM-K64F, follow these steps:
At this point I am not able, to connect with my server. If I Disconnect first session now, it will serve that the second session connects without pressing the Connect button again. So, are multiple connections not possible?
I have had a look at httpsrv_server_task() function in httpsrv_task.c. The semaphore $server->ses_cnt is taken but not released if one connection is alive. The rest of the code of that function seems to be programmed for more than one connection. I also have set the max_ses param high enough, to 5.
If I change the semaphore, so that I can set up more connections, the callback functions of the second connection are not working correctly. I get a response from the connect callback, but never from the message, error or disconnect callback. Because of that I am not able to receive any data or du abort the second connection.
If you need more Informations, please let me know. Would be great to get any help.
Best regards
Jan
Hi Jan:
As I remember, the HTTP server should support multiple WEB sockets. I will check it later.
Regards
Daniel
Hey Daniel,
do you have any new findings? It is still not possible for me to get multiple connections with that example program.
Regards
Jan
Hi Jan:
I can reproduce your issue on my end. I have reported this issue to the software team.
Regards
Daniel