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: <[email protected]> |
| 2019-04-15 15:09:11 | p-ganssle | link | issue33632 messages |
| 2019-04-15 15:09:11 | p-ganssle | create | |
|