Show More
@@ -708,7 +708,7 b' else:' | |||||
708 | if expires is not None: |
|
708 | if expires is not None: | |
709 | current_time = monotonic() |
|
709 | current_time = monotonic() | |
710 | if current_time > expires: |
|
710 | if current_time > expires: | |
711 |
raise OSError(errno |
|
711 | raise OSError(errno.ETIMEDOUT, 'Connection timed out') | |
712 | if recalc_timeout: |
|
712 | if recalc_timeout: | |
713 | if "timeout" in kwargs: |
|
713 | if "timeout" in kwargs: | |
714 | kwargs["timeout"] = expires - current_time |
|
714 | kwargs["timeout"] = expires - current_time |
General Comments 0
You need to be logged in to leave comments.
Login now