Skip to content

Commit

Permalink
The following error can be thrown from accept on ECONNABORT. Instead,…
Browse files Browse the repository at this point in the history
… it should be ignored.

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
  • Loading branch information
postwait authored and ry committed Dec 21, 2010
1 parent 30a3dfe commit c3ce41d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node_net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

Expand Down

0 comments on commit c3ce41d

Please sign in to comment.