Commit 4c949eb7 authored by Jason Madden's avatar Jason Madden

Changelog entry and comment for #377 and #136. Fixes #377.

parent 155b462c
...@@ -24,6 +24,9 @@ Unreleased ...@@ -24,6 +24,9 @@ Unreleased
- ``gevent.queue.JoinableQueue`` treats ``items`` passed to - ``gevent.queue.JoinableQueue`` treats ``items`` passed to
``__init__`` as unfinished tasks, the same as if they were ``put``. ``__init__`` as unfinished tasks, the same as if they were ``put``.
Initial PR #554 by DuLLSoN. Initial PR #554 by DuLLSoN.
- ``gevent.pywsgi`` no longer prints debugging information for the
normal conditions of a premature client disconnect. Issue #136,
fixed in PR #377 by Paul Collier.
Release 1.0.2 Release 1.0.2
------------- -------------
......
...@@ -538,8 +538,12 @@ class WSGIHandler(object): ...@@ -538,8 +538,12 @@ class WSGIHandler(object):
close() close()
self.wsgi_input._discard() self.wsgi_input._discard()
except socket.error as ex: except socket.error as ex:
# Broken pipe, connection reset by peer
if ex.args[0] in (errno.EPIPE, errno.ECONNRESET): if ex.args[0] in (errno.EPIPE, errno.ECONNRESET):
# Broken pipe, connection reset by peer.
# Swallow these silently to avoid spewing
# useless info on normal operating conditions,
# bloating logfiles. See https://github.com/gevent/gevent/pull/377
# and https://github.com/gevent/gevent/issues/136.
if not PY3: if not PY3:
sys.exc_clear() sys.exc_clear()
self.close_connection = True self.close_connection = True
......
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