mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +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
|
@ -1038,6 +1038,7 @@ class TestTCPServer(ControlMixin, ThreadingTCPServer):
|
|||
"""
|
||||
|
||||
allow_reuse_address = True
|
||||
allow_reuse_port = True
|
||||
|
||||
def __init__(self, addr, handler, poll_interval=0.5,
|
||||
bind_and_activate=True):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue