Skip to content

Commit

Permalink
Increase client accept queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Chion82 committed Feb 5, 2017
1 parent e4ba565 commit 07b6369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 53,7 @@ int init_server_socket() {
}

// Start listing on the socket
if (listen(sd, 2) < 0) {
if (listen(sd, SOMAXCONN) < 0) {
perror("listen error");
exit(-1);
return -1;
Expand Down

0 comments on commit 07b6369

Please sign in to comment.