Skip to content

Commit

Permalink
Set HTTPServer class variable allow_reuse_address to 1, so restarting
Browse files Browse the repository at this point in the history
the server after it died doesn't require a wait period.
  • Loading branch information
gvanrossum committed May 9, 2000
1 parent e3c7a5f commit 18865de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/BaseHTTPServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@

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)
Expand Down

0 comments on commit 18865de

Please sign in to comment.