From 1db17f257b1999114c699e77e204f1a91143e5ad Mon Sep 17 00:00:00 2001 From: Jerry Jacobs Date: Tue, 26 May 2015 13:36:07 +0200 Subject: redisBufferRead: Clear REDIS_CONNECTED flag when server closed connection --- hiredis.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hiredis.c b/hiredis.c index 73d0251..196268a 100644 --- a/hiredis.c +++ b/hiredis.c @@ -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 { -- cgit v1.2.3