]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] fix wrong timeout computation in event_accept()
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2007 18:36:37 +0000 (20:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Oct 2007 05:41:52 +0000 (07:41 +0200)
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

index e887b7c7c4fa223a3507037c300fb3d52a900723..afba13ec77338c539fba5bc1afff6b6bc2fdcb70 100644 (file)
@@ -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;
                        }
                }