You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// FIXME the standard library uses 128 here without an option to change this// number, why? If std has solid reasons to do this, remove this notice and// document the method's behavior on this matter explicitly; otherwise, add// an option to change this value.
c_wrappers::listen(&fd,128)?;
The size of the accept queue is equal to min(SOMAXCONN, backlog), by default SOMAXCONN=128.
Interesting find, but it makes it even more confusing how the standard library just puts a fixed value of 128 there. In this case, I'd like to introduce an optional parameter to specify the value for exotic use cases where SOMAXCONN is raised via /proc/sys/net/core/somaxconn and the server program depends on the increased backlog.
In
src\os\unix\listener.rs:88~92
The size of the accept queue is equal to
min(SOMAXCONN, backlog)
, by defaultSOMAXCONN=128
.SOMAXCONN
: socket max connections, man page.The text was updated successfully, but these errors were encountered: