Commit 05f89a3e authored by Jason Toffaletti's avatar Jason Toffaletti

ignore connection reset errors

--HG--
extra : transplant_source : %C94Y0%FB%0EZ%BDTkO%17_V%F5s%129%3E%1A
parent 79ac7bb0
...@@ -148,7 +148,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler): ...@@ -148,7 +148,7 @@ class HttpProtocol(BaseHTTPServer.BaseHTTPRequestHandler):
self.close_connection = 1 self.close_connection = 1
return return
except socket.error, e: except socket.error, e:
if e[0] != errno.EBADF: if e[0] != errno.EBADF and e[0] != errno.ECONNRESET:
raise raise
self.raw_requestline = '' self.raw_requestline = ''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment