mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-31 10:31:46 +00:00
[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.
This commit is contained in:
parent
177a16a8d1
commit
d95dcb51a8
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user