Commit 1db17f25 authored by Jerry Jacobs's avatar Jerry Jacobs Committed by Jan-Erik Rediger
Browse files

redisBufferRead: Clear REDIS_CONNECTED flag when server closed connection

parent 8e6d8195
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment