You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: yes
This issue is related to #102 ("Should float("inf") for timeout raise an Overflow error?")
uvloop throws an OverflowError if you pass asyncio.sleep a large enough delay.
Thanks to #102, uvloop handles the float("inf") case, but other large numbers (like sys.maxsize) still cause an exception to be thrown.
Sleep sys.maxsize float 9.223372036854776e+18: OverflowError: Python int too large to convert to C unsigned long
Sleep sys.maxsize int 9223372036854775807: OverflowError: Python int too large to convert to C unsigned long
Sleep 2**55 int 36028797018963968: OverflowError: Python int too large to convert to C unsigned long
Sleep infinity float inf: OK
Sleep 2**54 int 18014398509481984: OK
The text was updated successfully, but these errors were encountered:
PYTHONASYNCIODEBUG
in env?: yesThis issue is related to #102 ("Should
float("inf")
for timeout raise an Overflow error?")uvloop throws an OverflowError if you pass
asyncio.sleep
a large enough delay.Thanks to #102, uvloop handles the
float("inf")
case, but other large numbers (likesys.maxsize
) still cause an exception to be thrown.uvloop/uvloop/loop.pyx
Lines 1287 to 1294 in 88608b8
Perhaps if
round(delay * 1000)
is greater than2^64 − 1
, it should be reduced to be equal to that, to avoid OverflowErrors from occurring.Here is some code to reproduce the error:
It produces the output:
The text was updated successfully, but these errors were encountered: