What’s new in Tornado 2.1.1¶
Oct 4, 2011¶
Fixed handling of closed connections with the
IOLoop. Previously, closed connections could be shut down too early, which most often manifested as “Stream is closed” exceptions in
Fixed a case in which chunked responses could be closed prematurely, leading to truncated output.
IOStream.connectnow reports errors more consistently via logging and the close callback (this affects e.g. connections to localhost on FreeBSD).
IOStream.read_bytesagain accepts both
PeriodicCallbackno longer runs repeatedly when
IOLoopiterations complete faster than the resolution of
time.time()(mainly a problem on Windows).
IOLoop.ERRORalone is no longer sufficient for detecting closed connections on an otherwise unused socket.
IOLoop.ERRORmust always be used in combination with