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:
80dd818
)
net_uv: Don't error on ECONNRESET
author
Ryan Dahl
<ry@tinyclouds.org>
Tue, 23 Aug 2011 02:06:42 +0000
(19:06 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Tue, 23 Aug 2011 02:11:38 +0000
(19:11 -0700)
Fixes #1571.
Makefile
patch
|
blob
|
history
lib/net_uv.js
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
e53a4ff
..
0d5ae5f
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-191,6
+191,7
@@
UVTEST += simple/test-readuint
UVTEST += simple/test-regress-GH-746
UVTEST += simple/test-regress-GH-819
UVTEST += simple/test-regress-GH-897
+UVTEST += simple/test-regress-GH-1531
UVTEST += simple/test-regression-object-prototype
UVTEST += simple/test-repl
UVTEST += simple/test-require-cache
diff --git
a/lib/net_uv.js
b/lib/net_uv.js
index
7a97e46
..
d6f6d23
100644
(file)
--- a/
lib/net_uv.js
+++ b/
lib/net_uv.js
@@
-316,7
+316,11
@@
function onread(buffer, offset, length) {
if (self.onend) self.onend();
} else {
// Error
- self.destroy(errnoException(errno, 'read'));
+ if (errno == 'ECONNRESET') {
+ self.destroy();
+ } else {
+ self.destroy(errnoException(errno, 'read'));
+ }
}
}