Increase listen backlog count to 50

This commit is contained in:
Christopher Ramey 2015-02-04 21:00:05 +00:00 committed by cdramey
parent f0eb88af14
commit 6ccbbdcb5e

View File

@ -120,7 +120,7 @@ int main(int argc, char *argv[])
} }
// Listen on port // Listen on port
if(listen(sockfd, 10) != 0){ if(listen(sockfd, 50) != 0){
fprintf(stderr, "%s: cannot listen - %s\n", fprintf(stderr, "%s: cannot listen - %s\n",
exec_name, strerror(errno) exec_name, strerror(errno)
); );