Commit f8445923 authored by Denis Bilenko's avatar Denis Bilenko

pywsgi: ignore non-exceptional socket errors (issue #69)

--HG--
extra : transplant_source : i%EBn%DB%24%24%A2%7E%92%96%14%BAU%BF%D5%C0%16%86%B8%D5
parent b2f70ab2
......@@ -267,7 +267,12 @@ class WSGIHandler(object):
if self.rfile.closed:
return
raw_requestline = self.read_requestline()
try:
raw_requestline = self.read_requestline()
except socket.error:
# "Connection reset by peer" or other socket errors aren't interesting here
return
if not raw_requestline:
return
......
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