Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6e09ad1c
Commit
6e09ad1c
authored
Feb 16, 2012
by
antirez
Browse files
Return ASAP from checkClientOutputBufferLimits() if c->reply_bytes is zero.
parent
48a32944
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
6e09ad1c
...
...
@@ -1329,7 +1329,7 @@ int checkClientOutputBufferLimits(redisClient *c) {
* called from contexts where the client can't be freed safely, i.e. from the
* lower level functions pushing data inside the client output buffers. */
void
asyncCloseClientOnOutputBufferLimitReached
(
redisClient
*
c
)
{
if
(
c
->
flags
&
REDIS_CLOSE_ASAP
)
return
;
if
(
c
->
reply_bytes
==
0
||
c
->
flags
&
REDIS_CLOSE_ASAP
)
return
;
if
(
checkClientOutputBufferLimits
(
c
))
{
sds
client
=
getClientInfoString
(
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