facebook/tornado — pull request #653 by ajdavis (2012-12-11 16:47:18+00:00)
Title: Avoid setting IOStream.error to wrong exception, close #651

Here's a patch for issue-651, against current master branch.

Let me know if you agree with my decision, that if a read callback raises an exception, IOStream sets its error to that exception. (This is the same as current behavior, but implemented and tested explicitly in the new code.)