[Python-checkins] CVS: python/dist/src/Lib BaseHTTPServer.py,1.9,1.10
Guido van Rossum
python-dev@python.org
Tue, 9 May 2000 10:54:15 -0400 (EDT)
Update of /projects/cvsroot/python/dist/src/Lib
In directory eric:/projects/python/develop/guido/src/Lib
Modified Files:
BaseHTTPServer.py
Log Message:
Set HTTPServer class variable allow_reuse_address to 1, so restarting
the server after it died doesn't require a wait period.
Index: BaseHTTPServer.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Lib/BaseHTTPServer.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** BaseHTTPServer.py 1999/10/26 13:01:36 1.9
--- BaseHTTPServer.py 2000/05/09 14:54:13 1.10
***************
*** 88,91 ****
--- 88,93 ----
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."""