From f37fdb954fc3438b9d118617680385ecaa17fd3b Mon Sep 17 00:00:00 2001 From: Olof Hagsand Date: Mon, 27 Aug 2018 20:20:43 +0000 Subject: [PATCH] ECONNRESET --- lib/src/clixon_proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/clixon_proto.c b/lib/src/clixon_proto.c index 6c1db58b..1eaa4a66 100644 --- a/lib/src/clixon_proto.c +++ b/lib/src/clixon_proto.c @@ -247,7 +247,7 @@ atomicio(ssize_t (*fn) (int, void *, size_t), } else if (errno == EAGAIN) continue; - else if (errno == EPEER) + else if (errno == ECONNRESET)/* Connection reset by peer */ res = 0; case 0: /* fall thru */ return (res);