diff options
author | Mark Nunberg <mnunberg@haskalah.org> | 2019-02-11 14:53:42 -0500 |
---|---|---|
committer | Mark Nunberg <mnunberg@haskalah.org> | 2019-02-20 09:11:10 -0500 |
commit | f60c5506feab92f2b6185661cce16a303d28a6a3 (patch) | |
tree | 7dc12fa0cb92082ef795eecaeaeca2ae9511ef56 /adapters/libevent.h | |
parent | 24e6166fedbd76a47db2ca0b4f7ab52edc0044e8 (diff) |
Add EV_PERSIST flag to read events
This will avoid the need to constantly reschedule the event
Diffstat (limited to 'adapters/libevent.h')
-rw-r--r-- | adapters/libevent.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |