def __init__(self, socket): Transport.__init__(self) def connect(self): self.sock = socket connection = six.moves.http_client.HTTPConnection connection.connect = connect
def __init__(self, *args, **kwargs): self.socket_path = kwargs.pop('socket_path', '') Transport.__init__(self, *args, **kwargs)
def make_connection(self, host): conn = Transport.make_connection(self, host) conn.timeout = self._timeout return conn
def __init__(self, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, *args, **kwargs): Transport.__init__(self, *args, **kwargs) self._timeout = timeout
def make_connection(self, host): c = Transport.make_connection(self, host) c.timeout = self.timeout return c
def __init__(self, timeout, *args, **kwargs): Transport.__init__(self, *args, **kwargs) self.timeout = timeout
def __init__(self, *args, **kwargs): self.socket_path = kwargs.pop("socket_path", "") Transport.__init__(self, *args, **kwargs)