Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

net_uv: Don't error on ECONNRESET

Fixes #1571.
  • Loading branch information...
commit c4454d2efc144ed0ba2d1d8d3585932e58b869ae 1 parent 80dd818
@ry ry authored
Showing with 6 additions and 1 deletion.
  1. +1 −0  Makefile
  2. +5 −1 lib/net_uv.js
View
1  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
View
6 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'));
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.