From 07b6369f4e7a73954829039a1bbec0b133d01016 Mon Sep 17 00:00:00 2001 From: Chion Tang Date: Sun, 5 Feb 2017 18:51:08 +0800 Subject: [PATCH] Increase client accept queue --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 7df8d91..8622921 100644 --- a/client.c +++ b/client.c @@ -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;