diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index 953c916c93..6ebd9e433c 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3276,8 +3276,13 @@ finish_overlapped_socket(BOOL input, SOCKET s, WSAOVERLAPPED *wol, int result, D default: if ((err = WSAGetLastError()) == WSAECONNABORTED && !input) errno = EPIPE; + else if (err == WSAEMSGSIZE && input) { + result = TRUE; + *len = size; + break; + } else - errno = map_errno(WSAGetLastError()); + errno = map_errno(err); /* thru */ case WAIT_OBJECT_0 + 1: /* interrupted */ |