[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:
Willy Tarreau 2007-10-15 20:36:37 +02:00
parent 177a16a8d1
commit d95dcb51a8

View 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;
}
}