commit | d95dcb51a83336e8afa6b8f5af72a86d504ece44 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Oct 15 20:36:37 2007 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 16 07:41:52 2007 +0200 |
tree | c74589ec1fbb00710274a76ec7b5d76870103493 | |
parent | 177a16a8d1b2f146bf1208482fed72c783aa23d6 [diff] [blame] |
[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 e887b7c..afba13e 100644 --- a/src/client.c +++ b/src/client.c
@@ -432,7 +432,7 @@ } 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; } }