diff --git a/src/node_net.cc b/src/node_net.cc index b8e6c2d0ed..8fe579c7e5 100644 --- a/src/node_net.cc +++ b/src/node_net.cc @@ -450,7 +450,7 @@ static Handle Connect(const Arguments& args) { if (r == INVALID_SOCKET) { int wsaErrno = WSAGetLastError(); - if (wsaErrno != WSAEALREADY && wsaErrno != WSAEINPROGRESS) { + if (wsaErrno != WSAEWOULDBLOCK && wsaErrno != WSAEINPROGRESS) { return ThrowException(ErrnoException(wsaErrno, "connect")); } }