Merge pull request #5580 from Cacodemon345/patch-608451
Make sockets from incoming connections nonblocking on Windows
This commit is contained in:
@@ -82,10 +82,12 @@ SOCKET
|
||||
plat_netsocket_accept(SOCKET socket)
|
||||
{
|
||||
SOCKET clientsocket = accept(socket, NULL, NULL);
|
||||
u_long yes = 1;
|
||||
|
||||
if (clientsocket == INVALID_SOCKET)
|
||||
return -1;
|
||||
|
||||
ioctlsocket(clientsocket, FIONBIO, &yes);
|
||||
return clientsocket;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user