mercurial/hgweb/server.py
changeset 4134 9dc64c8414ca
parent 4096 49237d6ae97d
parent 4130 178007785be8
child 4250 ca639faa38a2
--- a/mercurial/hgweb/server.py	Sat Mar 03 18:59:54 2007 -0800
+++ b/mercurial/hgweb/server.py	Sun Mar 04 09:03:21 2007 -0300
@@ -197,6 +197,11 @@
                 pass
 
     class MercurialHTTPServer(object, _mixin, BaseHTTPServer.HTTPServer):
+        
+        # SO_REUSEADDR has broken semantics on windows
+        if os.name == 'nt':
+            allow_reuse_address = 0
+    
         def __init__(self, *args, **kargs):
             BaseHTTPServer.HTTPServer.__init__(self, *args, **kargs)
             self.accesslog = accesslog