Ejemplo n.º 1
0
 def _get_out_connection(self, address):
     try:
         connection = self._out_connections[address]
     except KeyError:
         try:
             connection = Connection.get_client(address, 1024 * 8)
             self._out_connections[address] = connection
         except ConnectFailException, e:
             self._logger.warning(e.message)
             return False