From c340c8abc4f8211721b6448f56570109aead3935 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sun, 22 Jul 2007 04:31:42 +0200 Subject: [PATCH] htpollflags: Return no poll flags if EOF has been reached. --- common/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/http.c b/common/http.c index 0338905..8190f2d 100644 --- a/common/http.c +++ b/common/http.c @@ -163,6 +163,8 @@ int htpollflags(struct htconn *cn) { int ret; + if(cn->fd == -1) + return(0); ret = POLLIN; if((cn->state == STATE_SYN) || (cn->outbufdata > 0)) ret |= POLLOUT; -- 2.11.0