]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41710: Fix PY_TIMEOUT_MAX on Windows (GH-28673)
authorVictor Stinner <vstinner@python.org>
Fri, 1 Oct 2021 11:03:03 +0000 (13:03 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 11:03:03 +0000 (13:03 +0200)
commit98d282700221234157159df4af76423d89490ad9
tree5f552e24b2945e6db9fa750afe4a3d135b6bb546
parent746d648d47d12d16c2afedaeff626fc6aaaf6a46
bpo-41710: Fix PY_TIMEOUT_MAX on Windows (GH-28673)

WaitForSingleObject() accepts timeout in milliseconds in the range
[0; 0xFFFFFFFE] (DWORD type). INFINITE value (0xFFFFFFFF) means no
timeout. 0xFFFFFFFE milliseconds is around 49.7 days.

PY_TIMEOUT_MAX is (0xFFFFFFFE * 1000) milliseconds on Windows, around
49.7 days.

Partially revert commit 37b8294d6295ca12553fd7c98778be71d24f4b24.
Include/pythread.h
Misc/NEWS.d/next/Library/2021-09-30-08-57-50.bpo-41710.JMsPAW.rst [deleted file]
Python/thread_nt.h