Submitter | Mads Kiilerich |
---|---|
Date | Oct. 10, 2013, 2:35 a.m. |
Message ID | <0143b6956677af12c3bd.1381372551@mk-desktop> |
Download | mbox | patch |
Permalink | /patch/2741/ |
State | Superseded, archived |
Headers | show |
Comments
Patch
diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py --- a/mercurial/hgweb/server.py +++ b/mercurial/hgweb/server.py @@ -45,7 +45,13 @@ def __init__(self, *args, **kargs): self.protocol_version = 'HTTP/1.1' - BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, *args, **kargs) + try: + BaseHTTPServer.BaseHTTPRequestHandler.__init__(self, + *args, **kargs) + except BaseHTTPServer.socket.error, e: + if e.errno != errno.ECONNRESET: + raise + # happens all the time when using authentication ... def _log_any(self, fp, format, *args): fp.write("%s - - [%s] %s\n" % (self.client_address[0],