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
hiredis
Commits
1db17f25
Commit
1db17f25
authored
May 26, 2015
by
Jerry Jacobs
Committed by
Jan-Erik Rediger
Aug 24, 2015
Browse files
redisBufferRead: Clear REDIS_CONNECTED flag when server closed connection
parent
8e6d8195
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiredis.c
View file @
1db17f25
...
...
@@ -808,6 +808,7 @@ int redisBufferRead(redisContext *c) {
return
REDIS_ERR
;
}
}
else
if
(
nread
==
0
)
{
c
->
flags
&=
~
REDIS_CONNECTED
;
__redisSetError
(
c
,
REDIS_ERR_EOF
,
"Server closed the connection"
);
return
REDIS_ERR
;
}
else
{
...
...
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