From 49c6ad83ecd1a845cecdda852c4a87bcecfd067d Mon Sep 17 00:00:00 2001 From: ruti <> Date: Mon, 3 Feb 2025 17:33:40 +0300 Subject: [PATCH] Fix POLLRDHUP ignoring #259 --- proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy.c b/proxy.c index 3fe1359..f83ab77 100644 --- a/proxy.c +++ b/proxy.c @@ -919,7 +919,7 @@ int on_connect(struct poolhd *pool, struct eval *val, int et) int on_ignore(struct poolhd *pool, struct eval *val, int etype) { - return (etype & (POLLHUP | POLLERR)) ? -1 : 0; + return (etype & (POLLHUP | POLLERR | POLLRDHUP)) ? -1 : 0; }