Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set after server dies raises AttributeError.

  • Loading branch information...
commit 020c5f04f8b2019bc1d01d88446cd8bd35fd2fdb 1 parent c5459d4
Sean Reifschneider linsomniac authored
Showing with 5 additions and 2 deletions.
  1. +3 −0  ChangeLog
  2. +2 −2 memcache.py
3  ChangeLog
View
@@ -1,3 +1,6 @@
+ * Doing a "set" after server goes away, raised AttributeError:
+ 'NoneType' object has no attribute 'sendall'. Patch by Ken Lalonde
+
* incr/decr return None instead of 0 on server connection failure.
Suggested by Ivan Virabyan
4 memcache.py
View
@@ -816,8 +816,8 @@ def _unsafe_set():
except _ConnectionDeadError:
# retry once
try:
- server._get_socket()
- return _unsafe_set()
+ if server._get_socket():
+ return _unsafe_set()
except (_ConnectionDeadError, socket.error), msg:
server.mark_dead(msg)
return 0
Please sign in to comment.
Something went wrong with that request. Please try again.