From: Willy Tarreau Date: Mon, 15 Oct 2007 18:36:37 +0000 (+0200) Subject: [BUG] fix wrong timeout computation in event_accept() X-Git-Tag: v1.3.12.3~4 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=5211add1fc76733b3b47de92cdfb2bbecc33bd49;p=haproxy.git [BUG] fix wrong timeout computation in event_accept() In case the incoming socket is set for write and not for read (very unlikely, except in HEALTH mode), the timeout may remain eternity due to a copy-paste typo. --- diff --git a/src/client.c b/src/client.c index 1f58154c2..b4efc9f49 100644 --- a/src/client.c +++ b/src/client.c @@ -430,7 +430,7 @@ int event_accept(int fd) { } if (EV_FD_ISSET(cfd, DIR_WR)) { tv_add(&s->rep->wex, &now, &s->fe->clitimeout); - t->expire = s->req->rex; + t->expire = s->rep->wex; } }