Skip to content

Instantly share code, notes, and snippets.

@postwait
Created December 21, 2010 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save postwait/749421 to your computer and use it in GitHub Desktop.
Save postwait/749421 to your computer and use it in GitHub Desktop.
ECONNABORTED should be ignored
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