From f60c5506feab92f2b6185661cce16a303d28a6a3 Mon Sep 17 00:00:00 2001 From: Mark Nunberg Date: Mon, 11 Feb 2019 14:53:42 -0500 Subject: Add EV_PERSIST flag to read events This will avoid the need to constantly reschedule the event --- adapters/libevent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapters/libevent.h b/adapters/libevent.h index 58bab4b..fb5558e 100644 --- a/adapters/libevent.h +++ b/adapters/libevent.h @@ -98,7 +98,7 @@ static void redisLibeventUpdate(void *privdata, short flag, int isRemove) { } event_del(e->ev); - event_assign(e->ev, e->base, e->context->c.fd, e->flags, + event_assign(e->ev, e->base, e->context->c.fd, e->flags | EV_PERSIST, redisLibeventHandler, privdata); event_add(e->ev, tv); } -- cgit v1.2.3