From 8e8e96070d039fa9f7d37a97133457c3e59c03ea Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 11 Oct 2012 16:59:13 +0200 Subject: [PATCH 1/1] EVENT: while abusing the timeout trigger for aborting the session we need to specify a timeout > 0; else the abort might not work. --- citadel/event_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2