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>
This commit is contained in:
Idan Kapustian 2024-06-16 15:15:03 +03:00 committed by GitHub
parent 0c0348adbf
commit 192d17c3fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 2 deletions

View file

@ -578,6 +578,7 @@ class SimpleXMLRPCServer(socketserver.TCPServer,
"""
allow_reuse_address = True
allow_reuse_port = True
# Warning: this is for debugging purposes only! Never set this to True in
# production code, as will be sending out sensitive information (exception