From 6289aafaf850e854e5b03710726db984df7cf82b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 2 Mar 2017 22:23:29 +0900 Subject: [PATCH] Increase backlog to 1024 --- src/SocketCore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SocketCore.cc b/src/SocketCore.cc index e6c94753..bce02fd6 100644 --- a/src/SocketCore.cc +++ b/src/SocketCore.cc @@ -362,7 +362,7 @@ void SocketCore::bind(const struct sockaddr* addr, socklen_t addrlen) void SocketCore::beginListen() { - if (listen(sockfd_, 1) == -1) { + if (listen(sockfd_, 1024) == -1) { int errNum = SOCKET_ERRNO; throw DL_ABORT_EX(fmt(EX_SOCKET_LISTEN, errorMsg(errNum).c_str())); }