Commit fec468b9 authored by Denis Bilenko's avatar Denis Bilenko

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

parent e94fce89
......@@ -267,7 +267,12 @@ class WSGIHandler(object):
if self.rfile.closed:
return
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