Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/server.py @ 4134:9dc64c8414ca
Merge with crew-stable
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 04 Mar 2007 09:03:21 -0300 |
parents | 49237d6ae97d 178007785be8 |
children | ca639faa38a2 |
line wrap: on
line diff
--- 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