diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-12-29 13:00:42 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-12-29 13:00:42 +0000 |
commit | 51285b4b54ec4f799ff9bcc81f3fe418b6a70864 (patch) | |
tree | 1b77783a77b1ab303600aea86c2012ba3c7ea182 /src/s_bsd_kqueue.c | |
parent | b6e0e862ead17a6b9fe277634e8e08eaefb8bc11 (diff) |
- Fixed bug where ircd didn't timeout SSL connections that haven't
finished the SSL handshake. Reported by Adam.
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2724 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/s_bsd_kqueue.c')
-rw-r--r-- | src/s_bsd_kqueue.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/s_bsd_kqueue.c b/src/s_bsd_kqueue.c index cb38e50..5d8dbed 100644 --- a/src/s_bsd_kqueue.c +++ b/src/s_bsd_kqueue.c @@ -120,7 +120,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; + } diff = new_events ^ F->evcache; |