]> git.ipfire.org Git - thirdparty/tornado.git/commit
Raise StreamClosedError instead of IOError for ECONNRESET.
authorBen Darnell <ben@bendarnell.com>
Mon, 19 May 2014 00:20:29 +0000 (20:20 -0400)
committerBen Darnell <ben@bendarnell.com>
Mon, 19 May 2014 00:20:29 +0000 (20:20 -0400)
commit5a9333d5062dde87c92078482caceb2bef43aa9f
tree9657045459a6f881fd4091e1b6d9549257480ff2
parent1cddd018e306f743d00ad0867a7de58b1040c3d1
Raise StreamClosedError instead of IOError for ECONNRESET.

This allows application code to only catch one kind of exception
(an ECONNRESET exception is raised from
tornado.test.httpserver_test.KeepAliveTest.test_pipeline_cancel
on linux but not on mac)
tornado/iostream.py