Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2010-11-30 12:33:51 +0300
committerBert Belder <bertbelder@gmail.com>2010-12-21 01:51:25 +0300
commitdd3308851d454e6904da1aaea67af7222a6d5717 (patch)
tree8b29f91b16b13488e89ca02f1b9c472e33953d3e /src
parent4a2cb0780882e842345a8454be768142e9c7d283 (diff)
Fix connect bug
Diffstat (limited to 'src')
-rw-r--r--src/node_net.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_net.cc b/src/node_net.cc
index b8e6c2d0edc..8fe579c7e5a 100644
--- a/src/node_net.cc
+++ b/src/node_net.cc
@@ -450,7 +450,7 @@ static Handle<Value> 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"));
}
}