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
64f201c2
Commit
64f201c2
authored
Jul 28, 2011
by
Hampus Wessman
Committed by
Salvatore Sanfilippo
Jul 28, 2011
Browse files
Fix crash when pipelining several blocking commands.
parent
3d9704d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
64f201c2
...
@@ -793,6 +793,9 @@ int processMultibulkBuffer(redisClient *c) {
...
@@ -793,6 +793,9 @@ int processMultibulkBuffer(redisClient *c) {
void
processInputBuffer
(
redisClient
*
c
)
{
void
processInputBuffer
(
redisClient
*
c
)
{
/* Keep processing while there is something in the input buffer */
/* Keep processing while there is something in the input buffer */
while
(
sdslen
(
c
->
querybuf
))
{
while
(
sdslen
(
c
->
querybuf
))
{
/* Immediately abort if the client is in the middle of something. */
if
(
c
->
flags
&
REDIS_BLOCKED
)
return
;
/* REDIS_CLOSE_AFTER_REPLY closes the connection once the reply is
/* REDIS_CLOSE_AFTER_REPLY closes the connection once the reply is
* written to the client. Make sure to not let the reply grow after
* written to the client. Make sure to not let the reply grow after
* this flag has been set (i.e. don't process more commands). */
* this flag has been set (i.e. don't process more commands). */
...
...
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