mirror of https://github.com/aria2/aria2
Increase backlog to 1024
parent
147c68f4bc
commit
6289aafaf8
|
@ -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()));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue