Example #1
0
 def _connect2(self):
     for server in self._servers:
         try:
             self._server = memc.conn2tuple(server)
             super(Client, self).connect(True)
             return
         except socket.error:
             continue
Example #2
0
 def __init__(self, server, debug=False):
     self._debug = debug
     self._server = memc.conn2tuple(server)
     self._sock = None
     self._buf = str()