mercurial/thirdparty/selectors2.py
branchstable
changeset 40787 d1bda397df73
parent 35245 414114a7c18f
--- a/mercurial/thirdparty/selectors2.py	Wed Nov 14 10:12:43 2018 -0500
+++ b/mercurial/thirdparty/selectors2.py	Mon Dec 03 21:31:19 2018 +0900
@@ -708,7 +708,7 @@
                     if expires is not None:
                         current_time = monotonic()
                         if current_time > expires:
-                            raise OSError(errno=errno.ETIMEDOUT)
+                            raise OSError(errno.ETIMEDOUT, 'Connection timed out')
                         if recalc_timeout:
                             if "timeout" in kwargs:
                                 kwargs["timeout"] = expires - current_time