[MINOR] remove wait_time nullification in ev_sepoll

in ev_sepoll(), wait_time is forced to zero if at least one
speculative event is converted to a real event. This is completely
wrong.
This commit is contained in:
Willy Tarreau 2007-04-29 21:49:00 +02:00
parent 5465e111fd
commit c2c078362a

View File

@ -326,11 +326,6 @@ REGPRM2 static void _do_poll(struct poller *p, int wait_time)
}
epoll_ctl(epoll_fd, opcode, fd, &ev);
/* We don't want epoll_wait() to wait for certain events
* which might never come.
*/
wait_time = 0;
if (status & EPOLLIN) {
fd_list[fd].e &= ~FD_EV_MASK_R;
fd_list[fd].e |= FD_EV_WAIT_R;