Increase backlog of listening sockets to match maxconn

This commit is contained in:
Daniel Winzen 2022-11-03 23:10:11 +01:00
parent a22e2be77b
commit 25c375a78a
No known key found for this signature in database
GPG Key ID: 222FCC3F35C41077

View File

@ -649,7 +649,7 @@ int MODULEMAINFUNC (int argc, char** argv){
}
}
if(!isudp){
if(so._listen (sock, 1 + (srv.maxchild>>4))==-1) {
if(so._listen (sock, srv.maxchild)==-1) {
sprintf((char *)buf, "listen(): %s", strerror(errno));
if(!srv.silent)dolog(&defparam, buf);
return -4;