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
c7cf2ec9
Commit
c7cf2ec9
authored
May 22, 2009
by
antirez
Browse files
Fix: no connection timeout for the master!
parent
8c4d91fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
c7cf2ec9
...
@@ -657,6 +657,7 @@ void closeTimedoutClients(void) {
...
@@ -657,6 +657,7 @@ void closeTimedoutClients(void) {
while ((ln = listYield(server.clients)) != NULL) {
while ((ln = listYield(server.clients)) != NULL) {
c = listNodeValue(ln);
c = listNodeValue(ln);
if (!(c->flags & REDIS_SLAVE) && /* no timeout for slaves */
if (!(c->flags & REDIS_SLAVE) && /* no timeout for slaves */
!(c->flags & REDIS_MASTER) && /* no timeout for masters */
(now - c->lastinteraction > server.maxidletime)) {
(now - c->lastinteraction > server.maxidletime)) {
redisLog(REDIS_DEBUG,"Closing idle client");
redisLog(REDIS_DEBUG,"Closing idle client");
freeClient(c);
freeClient(c);
...
...
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