Please add an "accept queue"

tve
Posts: 123
Joined: Sun Feb 15, 2015 4:33 pm

Please add an "accept queue"

Postby tve » Sun Jun 21, 2015 1:21 pm

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?

Who is online

Users browsing this forum: No registered users and 101 guests