-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
The IDF websocket server does not handle multiple simultaneous connections (at least the example doesn't) (IDFGH-7162) #8596
Comments
I did post a message on the forum, but that has no traction: https://esp32.com/viewtopic.php?f=13&t=26663&sid=b9ec90deb3701f18c7e782242527c4a2# |
Thanks for reporting. |
Thats correct, this example is not ready to handle multiple connections.
|
Just to be clear, are you saying that the example is broken and that the IDF core code is correct? |
As far as i know it works perfectly fine. Of course i may be wrong. My suggestion is to add log after this line to see value of |
@pjsg Could you please try this patch. I test it with your tool and it is ok. |
Thanks for this. I'll try and test it over the next couple of days. |
I'm sorry that it took me so long -- but that patch works great and fixes my problem (the Lua nodemcu firmware). When will it get merged? |
Thanks for sharing the updates, we have a fix under internal reviewing, and the issue will close automatically once the fix is available on GitHub, thanks. |
Even I am trying to handle diff channels thru idf ws server, it does not work |
@AnkDhage Do your problem is the same as the issue mentioned? Could you give a detailed description about it? |
Environment
git describe --tags
to find it):v4.4-beta1-284-gd83021a6e8
xtensa-esp32-elf-gcc --version
to find it):xtensa-esp32-elf-gcc (crosstool-NG esp-2021r2) 8.4.0
Problem Description
I'm running the IDF4.4 (commit d83021a) and running the unmodified example
examples/protocols/http_server/ws_echo_server
.To test it, I'm using
websocat
(from https://github.com/vi/websocat ) to make a connection to the websocket server and interact with it. In particular, I have this script (calleddosend
-- and this particular board is at 192.168.1.131)This script works fine provided that I only run one copy at a time. If I run four copies at the same time, then I get log messages from the ESP32 like:
I launch four copies with the command (on my linux laptop)
I originally found this in an application that I was building, but the issue reproduces in the provided echo example.
Other items if possible
Since this is just your sample code, I'm not providing any other information here
The text was updated successfully, but these errors were encountered: