Incorporate feedback from z3APA3A

This commit is contained in:
Daniel Winzen 2022-11-08 15:42:04 +01:00
parent 9a6908e623
commit cc0fd518bd
No known key found for this signature in database
GPG Key ID: 222FCC3F35C41077
3 changed files with 3 additions and 3 deletions

View File

@ -493,7 +493,7 @@ the connection limit has been reached.
.B backlog .B backlog
.br .br
sets the listening socket backlog of new connections. Default is sets the listening socket backlog of new connections. Default is
1+(maxconn>>3). Maximum value is capped by kernel tunable somaxconn. 1 + maxconn/8. Maximum value is capped by kernel tunable somaxconn.
.br .br
.B service .B service

View File

@ -102,7 +102,7 @@ struct extparam conf = {
NULL, NULL,
0, 0,
0, -1, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0,
0, 500, 13, 0, 0, 0, 0, 0, 2, 0, 500, 0, 0, 0, 0, 0, 0, 2,
0, 0, 0, 0, 0, 0,
6, 600, 6, 600,
1048576, 1048576,

View File

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