| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8979d3a commit 2bd3895
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -115,7 +115,7 @@ | |||
| 115 | 115 | class HTTPServer(socketserver.TCPServer): | |
| 116 | 116 | ||
| 117 | 117 | allow_reuse_address = True # Seems to make sense in testing environment | |
| 118 | - allow_reuse_port = True | ||
| 118 | + allow_reuse_port = False | ||
| 119 | 119 | ||
| 120 | 120 | def server_bind(self): | |
| 121 | 121 | """Override server_bind to store the server name.""" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1018,7 +1018,7 @@ class ConfigSocketReceiver(ThreadingTCPServer): | |||
| 1018 | 1018 | """ | |
| 1019 | 1019 | ||
| 1020 | 1020 | allow_reuse_address = True | |
| 1021 | - allow_reuse_port = True | ||
| 1021 | + allow_reuse_port = False | ||
| 1022 | 1022 | ||
| 1023 | 1023 | def __init__(self, host='localhost', port=DEFAULT_LOGGING_CONFIG_PORT, | |
| 1024 | 1024 | handler=None, ready=None, verify=None): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1036,7 +1036,7 @@ class TestTCPServer(ControlMixin, ThreadingTCPServer): | |||
| 1036 | 1036 | """ | |
| 1037 | 1037 | ||
| 1038 | 1038 | allow_reuse_address = True | |
| 1039 | - allow_reuse_port = True | ||
| 1039 | + allow_reuse_port = False | ||
| 1040 | 1040 | ||
| 1041 | 1041 | def __init__(self, addr, handler, poll_interval=0.5, | |
| 1042 | 1042 | bind_and_activate=True): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -578,7 +578,7 @@ class SimpleXMLRPCServer(socketserver.TCPServer, | |||
| 578 | 578 | """ | |
| 579 | 579 | ||
| 580 | 580 | allow_reuse_address = True | |
| 581 | - allow_reuse_port = True | ||
| 581 | + allow_reuse_port = False | ||
| 582 | 582 | ||
| 583 | 583 | # Warning: this is for debugging purposes only! Never set this to True in | |
| 584 | 584 | # production code, as will be sending out sensitive information (exception | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + Set the ``allow_reuse_port`` class variable to ``False`` on the XMLRPC, | ||
| 2 | + logging, and HTTP servers. This matches the behavior in prior Python | ||
| 3 | + releases, which is to not allow port reuse. | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments