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
4794d88f
Commit
4794d88f
authored
Oct 28, 2010
by
Pieter Noordhuis
Browse files
Rewrite comment that was no longer valid
parent
a3a323e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
4794d88f
...
@@ -798,12 +798,7 @@ int processMultibulkBuffer(redisClient *c) {
...
@@ -798,12 +798,7 @@ 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
))
{
/* Before to process the input buffer, make sure the client is not
/* Immediately abort if the client is in the middle of something. */
* waitig for a blocking operation such as BLPOP. Note that the first
* iteration the client is never blocked, otherwise the processInputBuffer
* would not be called at all, but after the execution of the first commands
* in the input buffer the client may be blocked, and the "goto again"
* will try to reiterate. The following line will make it return asap. */
if
(
c
->
flags
&
REDIS_BLOCKED
||
c
->
flags
&
REDIS_IO_WAIT
)
return
;
if
(
c
->
flags
&
REDIS_BLOCKED
||
c
->
flags
&
REDIS_IO_WAIT
)
return
;
/* REDIS_CLOSE_AFTER_REPLY closes the connection once the reply is
/* REDIS_CLOSE_AFTER_REPLY closes the connection once the reply is
...
...
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