Changeset - r7366:6d41b24b72e7
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-07-29 22:21:26
rubidium@openttd.org
(svn r10729) -Fix: some hardware (PS(P|3)) seems to loose the non-blocking state of UDP sockets.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/network/core/udp.cpp
Show inline comments
 
@@ -110,6 +110,7 @@ void NetworkUDPSocketHandler::ReceivePac
 
	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. */
0 comments (0 inline, 0 general)