-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webserver and Websocket at same port , Serving pages gets timed OUT #3237
Comments
... lws send out a lot of logs you can use to understand its point of view. You're going to have to look at them... The commented pvo's job is to tell lws how to route a NULL protocol name request for ws upgrade, in terms of which protocol on the lws side. If the browser side doesn't provide a protocol name with its request, you need to use it to bind the ws connection to the expected protocol / callback. |
Hi Andy, Is there a better approach to handle webServer and websocket using same port 443 with FreeRTOS and STM32/ any example with FREERTOS multi threading to handle webserver/ websocket? |
logs... |
Attaching the logs.. |
Does this help?
|
Hi Andy,
Am using HTTPS and WSS both at port 443,
My issue is when am having two pvo : lws-minimal-server-echo, default (snippet above) I can use both webserver and websocket
but while serving WEB pages getting ERR_CONNECTION_CLOSED after loading few files
If I keep only one pvo for the websocket callback,
The webserver load performance is stable but the websocket connection gets open but SEND/RECEIVE does not happen (testing with simple web client)
Creating context as below:
Protocols defined looks like this:
Any guidance will help.
Thanks
The text was updated successfully, but these errors were encountered: