Kaydet (Commit) 18865de7 authored tarafından Guido van Rossum's avatar Guido van Rossum

Set HTTPServer class variable allow_reuse_address to 1, so restarting

the server after it died doesn't require a wait period.
üst e3c7a5fb
......@@ -87,6 +87,8 @@ DEFAULT_ERROR_MESSAGE = """\
class HTTPServer(SocketServer.TCPServer):
allow_reuse_address = 1 # Seems to make sense in testing environment
def server_bind(self):
"""Override server_bind to store the server name."""
SocketServer.TCPServer.server_bind(self)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment