-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Number of Max Concurrrent Connection in Station mode? #4460
Comments
You can try to use the OOM debug option, call WiFiClient::flush() before ::stop() and for a sanity check, print a notice when your loop does not find a free client to hold the newcomer. |
What is meant by OOM debug?
How do I know that there is a newcomer? If I have 4 connections open with atleast one more waiting and call will the Thanks. |
I was wrong, I am currently running 12 simultaneous continuous tcp connections. I guess I need to understand the meaning of lwip's MEMP_NUM_*_PCB macros. You get a newcomer if server.available() returns a valid client. It will not close your current active clients. I guess if lwip can't handle a new incoming client, then this client will wait until an already-opened one is closed. |
Thanks, what is OOM debug?
…On 5 March 2018 at 10:54, david gauchard ***@***.***> wrote:
I was wrong, I am currently running 12 simultaneous continuous tcp
connections. I guess I need to understand the meaning of lwip's
MEMP_NUM_*_PCB macros.
You get a newcomer if server.available() returns a valid client. It will
not close your current active clients. I guess if lwip can't handle a new
incoming client, then this client will wait until an already-opened one is
closed.
I currently see nothing very bad with your sketch. Check your free heap,
use OOM debug option, use tcpCleanup since you have frequent short
connections. Your storing loop does nothing if there is no free index for
newcomers.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4460 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA1KgTSiFsE64BSi2KRqI0LcJzYvdVpiks5tbRlsgaJpZM4SbjO7>
.
|
OOM = Out Of Memory, it's an option in |
This is not an issue in the core, but rather a "How do I..." type question. |
Hello,
I am using ESP8266WiFi in station mode to connect to my AP at home. It is controlling 3 RGB leds sets via the GPIO (9 channels for 3 sets). There is an situation where the server that controls them all polls the ESP8266WiFi server for the status of the lights with many concurrent http requests, e.g.
My code is below and as new connections are created on the server, I add them to the array
clients
, once I have received a whole request and attempt to write back to that client, the lineclients[i]->println("HTTP/1.1 200 OK");
takes a long time to execute and return 0, as I do not believe it still has that connection open and therefore cannot respond to the client? Is this because I am hitting a concurrent connection limit?Is there a maximum number of connections in Station mode?
Can I increase this?
Thanks,
Daniel
The text was updated successfully, but these errors were encountered: