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
a4f3f93b
Commit
a4f3f93b
authored
Sep 17, 2010
by
antirez
Browse files
new parsing code bugfixing
parent
34a719d2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
a4f3f93b
...
...
@@ -664,6 +664,8 @@ void closeTimedoutClients(void) {
}
void
processInputBuffer
(
redisClient
*
c
)
{
int
seeknewline
=
0
;
again:
/* Before to process the input buffer, make sure the client is not
* waitig for a blocking operation such as BLPOP. Note that the first
...
...
@@ -672,6 +674,9 @@ again:
* 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
(
seeknewline
&&
c
->
bulklen
==
-
1
)
c
->
newline
=
strchr
(
c
->
querybuf
,
'\n'
);
seeknewline
=
1
;
if
(
c
->
bulklen
==
-
1
)
{
/* Read the first line of the query */
size_t
querylen
;
...
...
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