Browse Source

Increase listen backlog to 8k

master
Con Kolivas 10 years ago
parent
commit
5365f1a420
  1. 4
      src/connector.c

4
src/connector.c

@ -940,7 +940,7 @@ int connector(proc_instance_t *pi)
}
/* Set listen backlog to larger than SOMAXCONN in case the
* system configuration supports it */
if (listen(sockd, 1024) < 0) {
if (listen(sockd, 8192) < 0) {
LOGERR("Connector failed to listen on socket");
Close(sockd);
goto out;
@ -982,7 +982,7 @@ int connector(proc_instance_t *pi)
ret = 1;
goto out;
}
if (listen(sockd, 1024) < 0) {
if (listen(sockd, 8192) < 0) {
LOGERR("Connector failed to listen on socket");
Close(sockd);
goto out;

Loading…
Cancel
Save