[BUG] fix null timeouts in *poll-based pollers
authorWilly Tarreau <w@1wt.eu>
Mon, 14 May 2007 00:02:04 +0000 (02:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 May 2007 00:02:04 +0000 (02:02 +0200)
commitbdefc513a04c2189745933bc73815f81fc637233
treeb97fe52087fcae66ed39a4a89beb90725fe569c4
parentaff694f3b65332324c9afd2ec5ed112e2aabb52e
[BUG] fix null timeouts in *poll-based pollers

Introduction of timeval timers broke *poll-based pollers, because the call to
tv_ms_remain may return 0 while the event is not elapsed yet. Now we carefully
check for those cases and round the result up by 1 ms.
src/ev_epoll.c
src/ev_poll.c
src/ev_sepoll.c