]> git.ipfire.org Git - thirdparty/tornado.git/commit
Reduce log spam from closed client connections.
authorBen Darnell <ben@bendarnell.com>
Thu, 4 Oct 2012 05:36:46 +0000 (22:36 -0700)
committerBen Darnell <ben@bendarnell.com>
Thu, 4 Oct 2012 06:46:13 +0000 (23:46 -0700)
commit3258726fea5bcd1b401907653bc953ce63d5aeb2
tree8770f42903355147b9fdccf480bedcc3d70b0796
parent20deb5ca6107c0f95c2a1004b7bd13740c2cde4b
Reduce log spam from closed client connections.

Added a bunch of tests for keepalive functionality and fixed two cases
where we'd log an exception when the client was gone.  ECONNRESET
errors in IOStream reads now just close the connection instead of
logging an error (the exception information is still available on
stream.error in the close callback for apps that want it).
HTTPConnection now also checks for a closed connection and cleans up
instead of logging an error.

IOStream now raises a new exception class StreamClosedError instead of
IOError.
tornado/httpserver.py
tornado/iostream.py
tornado/test/httpserver_test.py
website/sphinx/releases/next.rst