Skip to content

Commit c3ce41d

Browse files
postwaitry
authored andcommitted
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
1 parent 30a3dfe commit c3ce41d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node_net.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ static Handle<Value> Accept(const Arguments& args) {
484484

485485
if (peer_fd < 0) {
486486
if (errno == EAGAIN) return scope.Close(Null());
487+
if (errno == ECONNABORTED) return scope.Close(Null());
487488
return ThrowException(ErrnoException(errno, "accept"));
488489
}
489490

0 commit comments

Comments
 (0)