Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libgo/netio/windows/win_vc_hook.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ namespace co {
return 0;
}

if (res < 0 && WSAGetLastError() != WSAEINPROGRESS) {
if (res < 0 && WSAGetLastError() != WSAEWOULDBLOCK) {
ErrnoStore es;
setNonblocking(s, false);
return res;
Expand All @@ -362,6 +362,7 @@ namespace co {
int err = 0;
int errlen = sizeof(err);
getsockopt(s, SOL_SOCKET, SO_ERROR, (char*)&err, &errlen);
setNonblocking(s, false);
if (err) {
WSASetLastError(err);
return -1;
Expand Down