mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 03:56:54 +02:00
Increase paltry listen() backlog size to prevent Linux kernel syn flood fallback (only really affects supernodes).
This commit is contained in:
parent
1bd5a1ebcd
commit
b1b37d9d72
1 changed files with 2 additions and 2 deletions
|
@ -412,7 +412,7 @@ NativeSocketManager::NativeSocketManager(int localUdpPort,int localTcpPort) :
|
|||
throw std::runtime_error("unable to bind to local TCP port");
|
||||
}
|
||||
|
||||
if (::listen(_tcpV6ListenSocket,16)) {
|
||||
if (::listen(_tcpV6ListenSocket,1024)) {
|
||||
_closeSockets();
|
||||
throw std::runtime_error("listen() failed");
|
||||
}
|
||||
|
@ -455,7 +455,7 @@ NativeSocketManager::NativeSocketManager(int localUdpPort,int localTcpPort) :
|
|||
throw std::runtime_error("unable to bind to local TCP port");
|
||||
}
|
||||
|
||||
if (::listen(_tcpV4ListenSocket,16)) {
|
||||
if (::listen(_tcpV4ListenSocket,1024)) {
|
||||
_closeSockets();
|
||||
throw std::runtime_error("listen() failed");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue