Created
March 20, 2012 19:45
-
-
Save isaacs/2140458 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e0aeb95dbf91c6dff27f88ac22910d2c0278a255 Mon Sep 17 00:00:00 2001 | |
From: Robert Mustacchi <rm@joyent.com> | |
Date: Tue, 20 Mar 2012 12:40:48 -0700 | |
Subject: [PATCH] Need to handle ECONNABORTED. | |
--- | |
src/unix/stream.c | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/src/unix/stream.c b/src/unix/stream.c | |
index 111bbc2..08d1971 100644 | |
--- a/src/unix/stream.c | |
+++ b/src/unix/stream.c | |
@@ -176,7 +176,7 @@ void uv__server_io(EV_P_ ev_io* watcher, int revents) { | |
fd = uv__accept(stream->fd, (struct sockaddr*)&addr, sizeof addr); | |
if (fd < 0) { | |
- if (errno == EAGAIN) { | |
+ if (errno == EAGAIN || errno == ECONNABORTED) { | |
/* No problem. */ | |
return; | |
} else if (errno == EMFILE) { | |
-- | |
1.7.3.3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same on Linux. It makes sense when you think about it. I landed a patch in joyent/libuv@c9c9d80.