From: Wilfried Goesgens Date: Thu, 11 Oct 2012 14:59:13 +0000 (+0200) Subject: EVENT: while abusing the timeout trigger for aborting the session we need to specify... X-Git-Tag: v8.20~225 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=8e8e96070d039fa9f7d37a97133457c3e59c03ea EVENT: while abusing the timeout trigger for aborting the session we need to specify a timeout > 0; else the abort might not work. --- diff --git a/citadel/event_client.c b/citadel/event_client.c index 7122ffc72..f3fd300cb 100644 --- a/citadel/event_client.c +++ b/citadel/event_client.c @@ -586,7 +586,7 @@ IO_send_callback(struct ev_loop *loop, ev_io *watcher, int revents) StrBufPrintf(IO->ErrMsg, "Socket Invalid! [%s]", strerror(errno)); - SetNextTimeout(IO, 0.0); + SetNextTimeout(IO, 0.01); } } /* else : must write more. */ @@ -819,7 +819,7 @@ IO_recv_callback(struct ev_loop *loop, ev_io *watcher, int revents) StrBufPrintf(IO->ErrMsg, "Socket Invalid! [%s]", strerror(errno)); - SetNextTimeout(IO, 0.0); + SetNextTimeout(IO, 0.01); } return; }