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