aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demo-json-rpc-server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/demo-json-rpc-server.c b/demo-json-rpc-server.c
index 6ae1742..56b931d 100644
--- a/demo-json-rpc-server.c
+++ b/demo-json-rpc-server.c
@@ -2285,7 +2285,8 @@ on_client_available (EV_P_ ev_io *watcher, int revents)
listener->create (EV_A_ sock_fd);
else if (errno == EAGAIN)
return;
- else if (errno != EINTR && errno != ECONNABORTED)
+ else if (errno != EINTR && errno != EMFILE
+ && errno != ECONNRESET && errno != ECONNABORTED)
break;
}