diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-09-28 23:09:42 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 10:39:42 -0700 |
commit | 575a253b5c203e8d2ebfd239ed5a613179f8984f (patch) | |
tree | 2bf2c6833ef3d08ae73cf410bacf24703f1f9ae1 /Lib/asyncio/constants.py | |
parent | 9a404b173e57ce171a867cfc3776cdf88d6c553f (diff) | |
download | cpython-git-575a253b5c203e8d2ebfd239ed5a613179f8984f.tar.gz |
GH-82448: Add thread timeout for loop.shutdown_default_executor (#97561)
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Diffstat (limited to 'Lib/asyncio/constants.py')
-rw-r--r-- | Lib/asyncio/constants.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/asyncio/constants.py b/Lib/asyncio/constants.py index f171ead28f..f0ce0433a7 100644 --- a/Lib/asyncio/constants.py +++ b/Lib/asyncio/constants.py @@ -26,6 +26,9 @@ SENDFILE_FALLBACK_READBUFFER_SIZE = 1024 * 256 FLOW_CONTROL_HIGH_WATER_SSL_READ = 256 # KiB FLOW_CONTROL_HIGH_WATER_SSL_WRITE = 512 # KiB +# Default timeout for joining the threads in the threadpool +THREAD_JOIN_TIMEOUT = 300 + # The enum should be here to break circular dependencies between # base_events and sslproto class _SendfileMode(enum.Enum): |