]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] remove wait_time nullification in ev_sepoll
authorWilly Tarreau <w@1wt.eu>
Sun, 29 Apr 2007 19:49:00 +0000 (21:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 29 Apr 2007 19:49:00 +0000 (21:49 +0200)
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.

src/ev_sepoll.c

index b7821fb67bb35e96c4534a75ca8726f13b104456..24a343e387432d7ebeda785420aca2f566afd752 100644 (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;