Created
December 21, 2010 03:05
-
-
Save postwait/749421 to your computer and use it in GitHub Desktop.
ECONNABORTED should be ignored
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/node_net.cc b/src/node_net.cc | |
index d4448aa..de3bb6b 100644 | |
--- a/src/node_net.cc | |
+++ b/src/node_net.cc | |
@@ -484,6 +484,7 @@ static Handle<Value> Accept(const Arguments& args) { | |
if (peer_fd < 0) { | |
if (errno == EAGAIN) return scope.Close(Null()); | |
+ if (errno == ECONNABORTED) return scope.Close(Null()); | |
return ThrowException(ErrnoException(errno, "accept")); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment