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
e452436a
Commit
e452436a
authored
Aug 24, 2010
by
antirez
Browse files
BLPOPping clients are no longer subject to connection timeouts, fixing issues 155
parent
01daeece
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
e452436a
...
@@ -466,6 +466,7 @@ void closeTimedoutClients(void) {
...
@@ -466,6 +466,7 @@ void closeTimedoutClients(void) {
if
(
server
.
maxidletime
&&
if
(
server
.
maxidletime
&&
!
(
c
->
flags
&
REDIS_SLAVE
)
&&
/* no timeout for slaves */
!
(
c
->
flags
&
REDIS_SLAVE
)
&&
/* no timeout for slaves */
!
(
c
->
flags
&
REDIS_MASTER
)
&&
/* no timeout for masters */
!
(
c
->
flags
&
REDIS_MASTER
)
&&
/* no timeout for masters */
!
(
c
->
flags
&
REDIS_BLOCKED
)
&&
/* no timeout for BLPOP */
dictSize
(
c
->
pubsub_channels
)
==
0
&&
/* no timeout for pubsub */
dictSize
(
c
->
pubsub_channels
)
==
0
&&
/* no timeout for pubsub */
listLength
(
c
->
pubsub_patterns
)
==
0
&&
listLength
(
c
->
pubsub_patterns
)
==
0
&&
(
now
-
c
->
lastinteraction
>
server
.
maxidletime
))
(
now
-
c
->
lastinteraction
>
server
.
maxidletime
))
...
...
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