Currently the limit on the number of open connections is "hard" in that it generates TCP resets. In other words, if I set the max number of connections for a listening socket to 4 then the 5th connection receives a TCP reset. This actually makes it difficult to operate a web server because web browsers like to open a good number of simultaneous connections to fetch all the assets on a page. Yet, these connections may be very short lived if the web server only supports http1.0 (i.e. no keep-alive connections), which is typical for simple web servers.
What would be very helpful is for the SDK to implement an accept queue where it keeps a small number of SYN packets for new connections in a queue waiting for one of the established connections to close. It would take very little memory to queue 4-8 syn packets beyond the max open connections and in the case of a web server this would function quite well.
Is this something you have considered supporting?
Please add an "accept queue"
Who is online
Users browsing this forum: No registered users and 101 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.