##// END OF EJS Templates
selectors2: backport minimal fix of timeout handling from 2.0.1...
Yuya Nishihara -
r40832:d1bda397 stable
parent child Browse files
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=errno.ETIMEDOUT)
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