Browse Source

The following error can be thrown from accept on ECONNABORT. Instead, 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
v0.7.4-release
Theo Schlossnagle 14 years ago
committed by Ryan Dahl
parent
commit
b202483e47
  1. 1
      src/node_net.cc

1
src/node_net.cc

@ -484,6 +484,7 @@ static Handle<Value> Accept(const Arguments& args) {
if (peer_fd < 0) { if (peer_fd < 0) {
if (errno == EAGAIN) return scope.Close(Null()); if (errno == EAGAIN) return scope.Close(Null());
if (errno == ECONNABORTED) return scope.Close(Null());
return ThrowException(ErrnoException(errno, "accept")); return ThrowException(ErrnoException(errno, "accept"));
} }

Loading…
Cancel
Save