]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Release note and doc updates
authorBen Darnell <ben@bendarnell.com>
Sun, 12 May 2013 22:08:23 +0000 (18:08 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 12 May 2013 22:08:23 +0000 (18:08 -0400)
docs/iostream.rst
docs/releases/next.rst
docs/testing.rst
docs/web.rst
docs/websocket.rst
tornado/websocket.py

index 85b4d28aa957001706239ab565c1029922536f8c..a2933a8f24b71396aac047784258ec6cb74eabe1 100644 (file)
@@ -21,6 +21,7 @@
    .. automethod:: BaseIOStream.closed
    .. automethod:: BaseIOStream.reading
    .. automethod:: BaseIOStream.writing
+   .. automethod:: BaseIOStream.set_nodelay
 
    Methods for subclasses
    ^^^^^^^^^^^^^^^^^^^^^^
index 60f44e13b976fa386caf1a17a6b2c9b5afd80eb7..6942283aff62a957a6370085b907fef7976e1354 100644 (file)
@@ -40,7 +40,8 @@ In progress
 * Fixed an exception in `.WSGIContainer` when the connection is closed
   while output is being written.
 * Silenced some log messages when connections are opened and immediately
-  closed (i.e. port scans).
+  closed (i.e. port scans), or other situations related to closed
+  connections.
 * The default `.Resolver` implementation now works on Solaris.
 * Memory is now reclaimed promptly on CPython when an HTTP request
   fails because it exceeded the maximum upload size.
@@ -48,3 +49,39 @@ In progress
 * `.Locale.format_date` now works on Python 3.
 * Some internal names used by the template system have been changed;
   now all "reserved" names in templates start with ``_tt_``.
+* The constructors of `.TCPServer` and `.HTTPServer` now take a
+  ``max_buffer_size`` keyword argument.
+* Fixed a bug in `.BaseIOStream.read_until_close` that would sometimes
+  cause data to be passed to the final callback instead of the streaming
+  callback.
+* The `.IOStream` close callback is now run more reliably if there is
+  an exception in ``_try_inline_read``.
+* New method `.RequestHandler.log_exception` can be overridden to
+  customize the logging behavior when an exception is uncaught.  Most
+  apps that currently override ``_handle_request_exception`` can now
+  use a combination of `.RequestHandler.log_exception` and
+  `.write_error`.
+* The ``TCP_NODELAY`` flag is now set when appropriate in `.HTTPServer`
+  and ``simple_httpclient``.
+* New methods `.BaseIOStream.set_nodelay` and
+  `.WebSocketHandler.set_nodelay` can be used to set the
+  ``TCP_NODELAY`` flag.
+* The cache used in `.HTTPHeaders` will no longer grow without bound.
+* Various small speedups: `.HTTPHeaders` case normalization, `.UIModule`
+  proxy objects, precompile some regexes.
+* `.bind_unused_port` now passes ``None`` instead of ``0`` as the port
+  to ``getaddrinfo``, which works better with some unusual network
+  configurations.
+* `.RequestHandler.get_argument` now raises `.MissingArgumentError`
+  (a subclass of `tornado.web.HTTPError`, which is what it raised previously)
+  if the argument cannot be found.
+* New function `.run_with_stack_context` facilitates the use of stack
+  contexts with coroutines.
+* `.url_escape` and `.url_unescape` have a new ``plus`` argument (defaulting
+  to True for consistency with the previous behavior) which specifies
+  whether they work like `urllib.parse.unquote` or `urllib.parse.unquote_plus`.
+* `.Application.reverse_url` now uses `.url_escape` with ``plus=False``,
+  i.e. spaces are encoded as ``%20`` instead of ``+``.
+* Arguments extracted from the url path are now decoded with
+  `.url_unescape` with ``plus=False``, so plus signs are left as-is
+  instead of being turned into spaces.
index b5fa753815af6bcf0894732e56e3fd6bab0e75a5..334d258799df1dc79672e92b5578e6c64553db21 100644 (file)
@@ -37,3 +37,5 @@
    .. autofunction:: bind_unused_port
 
    .. autofunction:: get_unused_port
+
+   .. autofunction:: get_async_test_timeout
index 585047f681503a0804f0f865e7ef1859839aa839..a400dcad312f9ff1c840c837b0714c1ad0985ffd 100644 (file)
@@ -95,6 +95,7 @@
    .. automethod:: RequestHandler.get_status
    .. automethod:: RequestHandler.get_template_path
    .. automethod:: RequestHandler.get_user_locale
+   .. automethod:: RequestHandler.log_exception
    .. automethod:: RequestHandler.on_connection_close
    .. automethod:: RequestHandler.require_setting
    .. automethod:: RequestHandler.reverse_url
index 793a665fb53d1ade56b7b5f3734907d668e1253b..e906af9070b3714587d699f99247f7290ff9340d 100644 (file)
@@ -24,6 +24,7 @@
 
    .. automethod:: WebSocketHandler.allow_draft76
    .. automethod:: WebSocketHandler.get_websocket_scheme
+   .. automethod:: WebSocketHandler.set_nodelay
 
    Other
    -----
index dd4e4b475e8d019448c6c0fa36e8c0fd104c9741..4a62882d45ddbf9f832488e58264ba21b963f75f 100644 (file)
@@ -237,7 +237,7 @@ class WebSocketHandler(tornado.web.RequestHandler):
         bandwidth usage), call ``self.set_nodelay(True)`` once the websocket
         connection is established.
 
-        See `.IOStream.set_nodelay` for additional details.
+        See `.BaseIOStream.set_nodelay` for additional details.
         """
         self.stream.set_nodelay(value)