mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-26 21:50:06 +00:00
Set monitor connections to non-blocking
Better to just drop monitor connections when the quality is bad than to risk blocking the shard thread.
This commit is contained in:
@@ -214,7 +214,7 @@ void CNSocket::step() {
|
||||
}
|
||||
}
|
||||
|
||||
static bool setSockNonblocking(SOCKET listener, SOCKET newSock) {
|
||||
bool setSockNonblocking(SOCKET listener, SOCKET newSock) {
|
||||
#ifdef _WIN32
|
||||
unsigned long mode = 1;
|
||||
if (ioctlsocket(newSock, FIONBIO, &mode) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user