From d95dcb51a83336e8afa6b8f5af72a86d504ece44 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 15 Oct 2007 20:36:37 +0200 Subject: [PATCH] [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. --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index e887b7c7c..afba13ec7 100644 --- a/src/client.c +++ b/src/client.c @@ -432,7 +432,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; } }