projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a894b3
)
The following error can be thrown from accept on ECONNABORT. Instead, it should be...
author
Theo Schlossnagle
<jesus@omniti.com>
Tue, 21 Dec 2010 03:08:41 +0000
(22:08 -0500)
committer
Ryan 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
patch
|
blob
|
history
diff --git
a/src/node_net.cc
b/src/node_net.cc
index f958744cd0733d32186b32ebe5f8f1cc51f31d90..72312ed7186ed9a1c9274b86a44d6af072020644 100644
(file)
--- 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"));
}