The following error can be thrown from accept on ECONNABORT. Instead, it should be...
authorTheo Schlossnagle <jesus@omniti.com>
Tue, 21 Dec 2010 03:08:41 +0000 (22:08 -0500)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 21 Dec 2010 18:46:58 +0000 (10:46 -0800)
net:1100
        if (e.errno != EMFILE) throw e;
                               ^
Error: ECONNABORTED, Software caused connection abort
    at IOWatcher.callback (net:1098:24)
    at node.js:773:9

src/node_net.cc

index f958744cd0733d32186b32ebe5f8f1cc51f31d90..72312ed7186ed9a1c9274b86a44d6af072020644 100644 (file)
@@ -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"));
   }