equal
deleted
inserted
replaced
325 keepalive.HTTPConnection.__init__(self, host, port, *args, **kwargs) |
325 keepalive.HTTPConnection.__init__(self, host, port, *args, **kwargs) |
326 self.key_file = key_file |
326 self.key_file = key_file |
327 self.cert_file = cert_file |
327 self.cert_file = cert_file |
328 |
328 |
329 def connect(self): |
329 def connect(self): |
330 self.sock = socket.create_connection((self.host, self.port)) |
330 self.sock = socket.create_connection( |
|
331 (self.host, self.port), self.timeout |
|
332 ) |
331 |
333 |
332 host = self.host |
334 host = self.host |
333 realhostport = self.realhostport # pytype: disable=attribute-error |
335 realhostport = self.realhostport # pytype: disable=attribute-error |
334 if realhostport: # use CONNECT proxy |
336 if realhostport: # use CONNECT proxy |
335 _generic_proxytunnel(self) |
337 _generic_proxytunnel(self) |