Skip to content

Commit

Permalink
modify socket_timeout and deaduntil because we only connect memcache
Browse files Browse the repository at this point in the history
in the same LAN
  • Loading branch information
octupszhang committed Jun 14, 2016
1 parent 0d5281e commit 39591e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions memcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ class _ConnectionDeadError(Exception):
pass


_DEAD_RETRY = 30 # number of seconds before retrying a dead server.
_SOCKET_TIMEOUT = 3 # number of seconds before sockets timeout.
_DEAD_RETRY = 120 # number of seconds before retrying a dead server.
_SOCKET_TIMEOUT = 1 # number of seconds before sockets timeout.


class Client(threading.local):
Expand Down

0 comments on commit 39591e3

Please sign in to comment.