projects
/
redis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
maxclients implemented, see redis.conf for details
[redis.git]
/
client-libraries
/
python
/
redis.py
diff --git
a/client-libraries/python/redis.py
b/client-libraries/python/redis.py
index 881dfd1de7d4394cc06538ce3f98e85bcf16a765..1787f171b4c48dff369575ae93aba32f6a41d174 100644
(file)
--- a/
client-libraries/python/redis.py
+++ b/
client-libraries/python/redis.py
@@
-880,6
+880,9
@@
class Redis(object):
def get_response(self):
data = self._read().strip()
+ if not data:
+ self.disconnect()
+ raise ConnectionError("Socket closed on remote end")
c = data[0]
if c == '-':
raise ResponseError(data[5:] if data[:5] == '-ERR ' else data[1:])