mirror of
https://github.com/python/cpython.git
synced 2025-12-10 02:50:09 +00:00
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:
parent
0c0348adbf
commit
192d17c3fd
5 changed files with 7 additions and 2 deletions
|
|
@ -129,7 +129,8 @@ DEFAULT_ERROR_CONTENT_TYPE = "text/html;charset=utf-8"
|
|||
|
||||
class HTTPServer(socketserver.TCPServer):
|
||||
|
||||
allow_reuse_address = 1 # Seems to make sense in testing environment
|
||||
allow_reuse_address = True # Seems to make sense in testing environment
|
||||
allow_reuse_port = True
|
||||
|
||||
def server_bind(self):
|
||||
"""Override server_bind to store the server name."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue