From 9a9f8d048d944801737f9ac936ba5f4c66855b5a Mon Sep 17 00:00:00 2001 From: Vysheng Date: Mon, 8 Sep 2014 17:33:33 +0400 Subject: [PATCH] Fixed event-1.4 --- net.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net.c b/net.c index 2c0dfd8..68559a1 100644 --- a/net.c +++ b/net.c @@ -477,6 +477,10 @@ static void try_read (struct connection *c) { if (!c->in_tail) { c->in_head = c->in_tail = new_connection_buffer (1 << 20); } + #ifdef EVENT_V1 + struct timeval tv = {5, 0}; + event_add (c->read_ev, &tv); + #endif int x = 0; while (1) { int r = read (c->fd, c->in_tail->wptr, c->in_tail->end - c->in_tail->wptr);