From: Wilfried Goesgens Date: Tue, 3 Jul 2012 20:22:56 +0000 (+0200) Subject: EVENT-Client: fix the abort routines when we wake up and just get zero bytes. X-Git-Tag: v8.13~25 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=048b9feb7c326064d7444901f5d940d5fa544f6f EVENT-Client: fix the abort routines when we wake up and just get zero bytes. --- diff --git a/citadel/event_client.c b/citadel/event_client.c index 79a2f0f9c..35581e516 100644 --- a/citadel/event_client.c +++ b/citadel/event_client.c @@ -805,7 +805,8 @@ IO_recv_callback(struct ev_loop *loop, ev_io *watcher, int revents) if (nbytes > 0) { HandleInbound(IO); } else if (nbytes == 0) { - SetNextTimeout(IO, 0.0); + StopClientWatchers(IO, 1); + SetNextTimeout(IO, 0.01); return; } else if (nbytes == -1) { if (errno != EAGAIN) {