Message340284
> In short, a+b can overflow, but a-b cannot?
I think it's more that by always checking the elapsed time against `now() - starttime`, you never need to represent the time at which the timeout should happen - which may be so far in the future that it causes a signed overflow. |
|
Date |
User |
Action |
Args |
2019-04-15 15:09:11 | p-ganssle | set | recipients:
+ p-ganssle, pitrou, vstinner, martin.panter, ZackerySpytz |
2019-04-15 15:09:11 | p-ganssle | set | messageid: <1555340951.73.0.894337627693.issue33632@roundup.psfhosted.org> |
2019-04-15 15:09:11 | p-ganssle | link | issue33632 messages |
2019-04-15 15:09:11 | p-ganssle | create | |
|