File: v2.1.1.rst

package info (click to toggle)
python-tornado 6.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,408 kB
  • sloc: python: 28,501; javascript: 156; sh: 100; ansic: 58; xml: 49; makefile: 49; sql: 23
file content (29 lines) | stat: -rw-r--r-- 1,118 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 logging
  and the close callback (this affects e.g. connections to localhost
  on FreeBSD).
* ``IOStream.read_bytes`` again accepts both ``int`` and ``long`` arguments.
* ``PeriodicCallback`` no longer runs repeatedly when ``IOLoop`` iterations
  complete faster than the resolution of ``time.time()`` (mainly a problem
  on Windows).

Backwards-compatibility note
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* Listening for ``IOLoop.ERROR`` alone is no longer sufficient for detecting
  closed connections on an otherwise unused socket.  ``IOLoop.ERROR`` must
  always be used in combination with ``READ`` or ``WRITE``.