mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (finish_overlapped_socket): return value of this
function should be only 0 or SOCKET_ERROR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3e8672094d
commit
2e865ba81e
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Nov 19 14:14:37 2015 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (finish_overlapped_socket): return value of this
|
||||
function should be only 0 or SOCKET_ERROR.
|
||||
|
||||
Thu Nov 19 14:12:12 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* compile.c (iseq_tailcall_optimize): apply tail call optimization
|
||||
|
|
|
@ -3269,15 +3269,17 @@ finish_overlapped_socket(BOOL input, SOCKET s, WSAOVERLAPPED *wol, int result, D
|
|||
result = WSAGetOverlappedResult(s, wol, &size, TRUE, &flg)
|
||||
);
|
||||
if (result) {
|
||||
result = 0;
|
||||
*len = size;
|
||||
break;
|
||||
}
|
||||
result = SOCKET_ERROR;
|
||||
/* thru */
|
||||
default:
|
||||
if ((err = WSAGetLastError()) == WSAECONNABORTED && !input)
|
||||
errno = EPIPE;
|
||||
else if (err == WSAEMSGSIZE && input) {
|
||||
result = TRUE;
|
||||
result = 0;
|
||||
*len = size;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue