fix UDP receive on Windows
When the received message is larger than the space available, it's still received.
This commit is contained in:
parent
e7d29dee61
commit
95617a200b
1
native-pkgs
Submodule
1
native-pkgs
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 2f116c1b64af3f980a403cb4b57051457b2a9c39
|
|
@ -3704,6 +3704,7 @@ static int do_udp_recv(const char *name, Scheme_UDP *udp, char *bstr, intptr_t s
|
|||
} else if (WAS_WSAEMSGSIZE(errid)) {
|
||||
x = end - start;
|
||||
errid = 0;
|
||||
break;
|
||||
} else if (WAS_EAGAIN(errid)) {
|
||||
if (can_block) {
|
||||
/* Block and eventually try again. */
|
||||
|
|
Loading…
Reference in New Issue
Block a user