mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (finish_overlapped_socket): ignore EMSGSIZE when input,
because POSIX platforms just do so. fixes test errors revealed by r52647. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8a3423d38b
commit
01a54cf40f
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu Nov 19 13:57:58 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (finish_overlapped_socket): ignore EMSGSIZE when input,
|
||||
because POSIX platforms just do so. fixes test errors revealed by
|
||||
r52647.
|
||||
|
||||
Thu Nov 19 02:52:30 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/socket/ancdata.c (bsock_recvmsg_internal): stretch the buffer size
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue