Exemplo n.º 1
0
    def __init__(self, socket):
        Transport.__init__(self)

        def connect(self):
            self.sock = socket

        connection = six.moves.http_client.HTTPConnection
        connection.connect = connect
Exemplo n.º 2
0
    def __init__(self, socket):
        Transport.__init__(self)

        def connect(self):
            self.sock = socket

        connection = six.moves.http_client.HTTPConnection
        connection.connect = connect
Exemplo n.º 3
0
 def __init__(self, *args, **kwargs):
     self.socket_path = kwargs.pop('socket_path', '')
     Transport.__init__(self, *args, **kwargs)
Exemplo n.º 4
0
 def make_connection(self, host):
     conn = Transport.make_connection(self, host)
     conn.timeout = self._timeout
     return conn
Exemplo n.º 5
0
 def __init__(self, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, *args, **kwargs):
     Transport.__init__(self, *args, **kwargs)
     self._timeout = timeout
Exemplo n.º 6
0
    def make_connection(self, host):
        c = Transport.make_connection(self, host)
        c.timeout = self.timeout

        return c
Exemplo n.º 7
0
 def __init__(self, timeout, *args, **kwargs):
     Transport.__init__(self, *args, **kwargs)
     self.timeout = timeout
Exemplo n.º 8
0
 def __init__(self, *args, **kwargs):
     self.socket_path = kwargs.pop("socket_path", "")
     Transport.__init__(self, *args, **kwargs)