diff options
author | Idan Kapustian <71190257+idankap@users.noreply.github.com> | 2024-06-16 12:15:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-16 12:15:03 (GMT) |
commit | 192d17c3fd9945104bc0303cf248bb0d074d260e (patch) | |
tree | 2a9fd31fa0531c5c9b3ac2237c9ec79f98f0bce0 /Lib/logging/config.py | |
parent | 0c0348adbfca991f78b3aaa6790e5c26606a1c0f (diff) | |
download | cpython-192d17c3fd9945104bc0303cf248bb0d074d260e.zip cpython-192d17c3fd9945104bc0303cf248bb0d074d260e.tar.gz cpython-192d17c3fd9945104bc0303cf248bb0d074d260e.tar.bz2 |
gh-120485: Add an override of `allow_reuse_port` on classes subclassing `socketserver.TCPServer` (GH-120488)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Diffstat (limited to 'Lib/logging/config.py')
-rw-r--r-- | Lib/logging/config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 9de84e5..d2f23e5 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -984,7 +984,8 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT, verify=None): A simple TCP socket-based logging config receiver. """ - allow_reuse_address = 1 + allow_reuse_address = True + allow_reuse_port = True def __init__(self, host='localhost', port=DEFAULT_LOGGING_CONFIG_PORT, handler=None, ready=None, verify=None): |