Increase backlog of listening sockets to match maxconn

This commit is contained in:
Daniel Winzen committed 2022-11-03 23:24:25 +01:00
1 parent a22e2be77b
commit 25c375a78a
1 file changed
+1 -1
+1 -1
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;