Increase backlog to 1024

pull/861/head
Tatsuhiro Tsujikawa 2017-03-02 22:23:29 +09:00
parent 147c68f4bc
commit 6289aafaf8
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ void SocketCore::bind(const struct sockaddr* addr, socklen_t addrlen)
void SocketCore::beginListen() void SocketCore::beginListen()
{ {
if (listen(sockfd_, 1) == -1) { if (listen(sockfd_, 1024) == -1) {
int errNum = SOCKET_ERRNO; int errNum = SOCKET_ERRNO;
throw DL_ABORT_EX(fmt(EX_SOCKET_LISTEN, errorMsg(errNum).c_str())); throw DL_ABORT_EX(fmt(EX_SOCKET_LISTEN, errorMsg(errNum).c_str()));
} }