Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
f60c5506
Commit
f60c5506
authored
Feb 11, 2019
by
Mark Nunberg
Browse files
Add EV_PERSIST flag to read events
This will avoid the need to constantly reschedule the event
parent
24e6166f
Changes
1
Show whitespace changes
Inline
Side-by-side
adapters/libevent.h
View file @
f60c5506
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment