(svn r10729) -Fix: some hardware (PS(P|3)) seems to loose the non-blocking state of UDP sockets.
authorrubidium
Sun, 29 Jul 2007 22:21:26 +0000
changeset 7862 377ba3d278da
parent 7861 e45fe49dbe58
child 7863 cc5dcf5c8ed4
(svn r10729) -Fix: some hardware (PS(P|3)) seems to loose the non-blocking state of UDP sockets.
src/network/core/udp.cpp
--- a/src/network/core/udp.cpp	Sun Jul 29 21:43:49 2007 +0000
+++ b/src/network/core/udp.cpp	Sun Jul 29 22:21:26 2007 +0000
@@ -110,6 +110,7 @@
 	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. */