合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
### Navigation - [index](# "General Index") - [modules](# "Python Module Index") | - [next](# "What鈥檚 new in Tornado 2.1") | - [previous](# "What鈥檚 new in Tornado 2.2") | - [Tornado 4.4.dev1 documentation](#) » - [Release notes](#) » # What's new in Tornado 2.1.1 ### Oct 4, 2011 ### Bug fixes - Fixed handling of closed connections with the `epoll` (i.e. Linux)`IOLoop`. Previously, closed connections could be shut down too early,which most often manifested as “Stream is closed” exceptions in`SimpleAsyncHTTPClient`. - Fixed a case in which chunked responses could be closed prematurely,leading to truncated output. - `IOStream.connect` now reports errors more consistently via loggingand the close callback (this affects e.g. connections to localhoston FreeBSD). - `IOStream.read_bytes` again accepts both `int` and `long` arguments. - `PeriodicCallback` no longer runs repeatedly when `IOLoop` iterationscomplete faster than the resolution of `time.time()` (mainly a problemon Windows). ### Backwards-compatibility note - Listening for `IOLoop.ERROR` alone is no longer sufficient for detectingclosed connections on an otherwise unused socket. `IOLoop.ERROR` mustalways be used in combination with `READ` or `WRITE`. © Copyright 2009-2016, The Tornado Authors. Created using [Sphinx](http://sphinx-doc.org/) 1.3.5.