diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2017-03-02 22:23:29 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2017-03-02 22:23:29 +0900 |
| commit | 6289aafaf850e854e5b03710726db984df7cf82b (patch) | |
| tree | 243959df32f84e4077a6cbe21c882828cfc2a76e /src/SocketCore.cc | |
| parent | 147c68f4bc3b7b4285cf0007632830d5f5b63f7d (diff) | |
Increase backlog to 1024
Diffstat (limited to 'src/SocketCore.cc')
| -rw-r--r-- | src/SocketCore.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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())); } |
