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
redis
Commits
077f9654
Commit
077f9654
authored
Mar 26, 2020
by
antirez
Browse files
Precise timeouts: fast exit for clientsHandleShortTimeout().
parent
8d11e0df
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
077f9654
...
...
@@ -1585,6 +1585,7 @@ void addClientToShortTimeoutTable(client *c) {
/* This function is called in beforeSleep() in order to unblock ASAP clients
* that are waiting in blocking operations with a short timeout set. */
void
clientsHandleShortTimeout
(
void
)
{
if
(
raxSize
(
server
.
clients_timeout_table
)
==
0
)
return
;
uint64_t
now
=
mstime
();
raxIterator
ri
;
raxStart
(
&
ri
,
server
.
clients_timeout_table
);
...
...
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