mercurial/url.py
branchstable
changeset 50348 3bb7c56e8fe6
parent 49390 9f3edb305261
child 50614 ecaf00089461
--- a/mercurial/url.py	Tue Mar 21 15:44:38 2023 +0000
+++ b/mercurial/url.py	Tue Mar 21 15:27:03 2023 +0100
@@ -327,7 +327,9 @@
             self.cert_file = cert_file
 
         def connect(self):
-            self.sock = socket.create_connection((self.host, self.port))
+            self.sock = socket.create_connection(
+                (self.host, self.port), self.timeout
+            )
 
             host = self.host
             realhostport = self.realhostport  # pytype: disable=attribute-error