From 809238e634bf1f23381fc7db127506bc0a7196f8 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 29 Jul 2007 22:21:26 +0000 Subject: (svn r10729) -Fix: some hardware (PS(P|3)) seems to loose the non-blocking state of UDP sockets. --- src/network/core/udp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/network/core/udp.cpp b/src/network/core/udp.cpp index d58184489..a2959eb9a 100644 --- a/src/network/core/udp.cpp +++ b/src/network/core/udp.cpp @@ -110,6 +110,7 @@ void NetworkUDPSocketHandler::ReceivePackets() client_len = sizeof(client_addr); /* Try to receive anything */ + SetNonBlocking(this->sock); // Some OSes seem to loose the non-blocking status of the socket nbytes = recvfrom(this->sock, (char*)p.buffer, packet_len, 0, (struct sockaddr *)&client_addr, &client_len); /* We got some bytes for the base header of the packet. */ -- cgit v1.2.3-70-g09d2