diff options
Diffstat (limited to 'src/s_bsd_epoll.c')
-rw-r--r-- | src/s_bsd_epoll.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/s_bsd_epoll.c b/src/s_bsd_epoll.c index 088a3ff..09c0f69 100644 --- a/src/s_bsd_epoll.c +++ b/src/s_bsd_epoll.c @@ -141,7 +141,11 @@ comm_setselect(fde_t *F, unsigned int type, PF *handler, (F->write_handler ? EPOLLOUT : 0); if (timeout != 0) + { F->timeout = CurrentTime + (timeout / 1000); + F->timeout_handler = handler; + F->timeout_data = client_data; + } if (new_events != F->evcache) { |