Merge remote-tracking branch 'upstream/master' into moonlight
This commit is contained in:
@@ -1242,6 +1242,9 @@ enet_protocol_receive_incoming_commands (ENetHost * host, ENetEvent * event)
|
||||
& buffer,
|
||||
1);
|
||||
|
||||
if (receivedLength == -2)
|
||||
continue;
|
||||
|
||||
if (receivedLength < 0)
|
||||
return -1;
|
||||
|
||||
|
||||
@@ -663,7 +663,7 @@ enet_socket_receive (ENetSocket socket,
|
||||
|
||||
#ifdef HAS_MSGHDR_FLAGS
|
||||
if (msgHdr.msg_flags & MSG_TRUNC)
|
||||
return -1;
|
||||
return -2;
|
||||
#endif
|
||||
|
||||
// Retrieve the local address that this traffic was received on
|
||||
|
||||
@@ -534,13 +534,15 @@ enet_socket_receive (ENetSocket socket,
|
||||
case WSAEWOULDBLOCK:
|
||||
case WSAECONNRESET:
|
||||
return 0;
|
||||
case WSAEMSGSIZE:
|
||||
return -2;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (msg.dwFlags & MSG_PARTIAL)
|
||||
return -1;
|
||||
return -2;
|
||||
|
||||
// Retrieve the local address that this traffic was received on
|
||||
// to ensure we respond from the correct address/interface.
|
||||
|
||||
Reference in New Issue
Block a user