]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
12 years agoAvoid setting IOStream.error to wrong exception, close #651 653/head
A. Jesse Jiryu Davis [Tue, 11 Dec 2012 16:45:21 +0000 (11:45 -0500)] 
Avoid setting IOStream.error to wrong exception, close #651

12 years agoReplace a couple of contextmanager functions with ExceptionStackContext.
Ben Darnell [Sun, 9 Dec 2012 00:34:16 +0000 (19:34 -0500)] 
Replace a couple of contextmanager functions with ExceptionStackContext.

12 years agoMerge remote-tracking branch 'rhettg/master' into work
Ben Darnell [Sun, 9 Dec 2012 00:21:25 +0000 (19:21 -0500)] 
Merge remote-tracking branch 'rhettg/master' into work

12 years agoRun AsyncHTTPClient callbacks on the IOLoop for a clean stack.
Ben Darnell [Sat, 8 Dec 2012 23:37:45 +0000 (18:37 -0500)] 
Run AsyncHTTPClient callbacks on the IOLoop for a clean stack.

Closes #652.

12 years agoTwistedIOLoop now supports overriding handle_callback_exception.
Ben Darnell [Sun, 9 Dec 2012 00:17:27 +0000 (19:17 -0500)] 
TwistedIOLoop now supports overriding handle_callback_exception.

12 years agoRemove some now-unnecessary calls to functools.partial
Ben Darnell [Sat, 8 Dec 2012 23:32:17 +0000 (18:32 -0500)] 
Remove some now-unnecessary calls to functools.partial

12 years agoAdd forgotten release note.
Ben Darnell [Sat, 8 Dec 2012 23:27:12 +0000 (18:27 -0500)] 
Add forgotten release note.

12 years agoadd_callback now takes *args, **kwargs.
Ben Darnell [Sat, 8 Dec 2012 23:25:11 +0000 (18:25 -0500)] 
add_callback now takes *args, **kwargs.

This reduces the need for functools.partial or lambda wrappers, and
works better with stack_context in some cases since binding the
arguments within IOLoop lets it see whether the function is already
wrapped.

12 years agoDon't catch and hide exceptions caused by callbacks in http client 652/head
Rhett Garber [Sat, 8 Dec 2012 00:13:57 +0000 (16:13 -0800)] 
Don't catch and hide exceptions caused by callbacks in http client

12 years agocurl_httpclient: don't call remove_handler if we never added it.
Ben Darnell [Fri, 7 Dec 2012 19:28:13 +0000 (14:28 -0500)] 
curl_httpclient: don't call remove_handler if we never added it.

Re-order IOLoop and self._fds operations for consistency.

12 years agoCatch all exceptions, not just {OS,IO}Error in IOLoop.remove_handler.
Ben Darnell [Fri, 7 Dec 2012 19:19:48 +0000 (14:19 -0500)] 
Catch all exceptions, not just {OS,IO}Error in IOLoop.remove_handler.

Attempting to remove a non-existent fd raises IOError on epoll
but KeyError on kqueue; this change swallows any exeption to make
both platforms consistent.

12 years agoAdd path_{kw,}args attributes to RequestHandler.
Ben Darnell [Sun, 2 Dec 2012 18:37:54 +0000 (13:37 -0500)] 
Add path_{kw,}args attributes to RequestHandler.

12 years agoReturn a Vary: Accept-Encoding header whenever gzip is enabled.
Ben Darnell [Sun, 2 Dec 2012 17:33:51 +0000 (12:33 -0500)] 
Return a Vary: Accept-Encoding header whenever gzip is enabled.

This is one of two problems found with redbot.  The other,
that etags should change when content-encoding is used, is trickier to
fix and seems to be less problematic.

Closes #578.

12 years agoAdd tests using the Redbot library for HTTP validation and caching.
Ben Darnell [Sun, 2 Dec 2012 16:13:42 +0000 (11:13 -0500)] 
Add tests using the Redbot library for HTTP validation and caching.

12 years agoDocument the use of self.xsrf_token to set the cookie for ajax-only apps.
Ben Darnell [Sun, 2 Dec 2012 02:27:34 +0000 (21:27 -0500)] 
Document the use of self.xsrf_token to set the cookie for ajax-only apps.

Closes #645.

12 years agoDocument the need to pass Connection: close when using no_keep_alive.
Ben Darnell [Sat, 1 Dec 2012 23:17:07 +0000 (18:17 -0500)] 
Document the need to pass Connection: close when using no_keep_alive.

Closes #641.

12 years agoAdd a mock.patch-compatible wrapper for options objects.
Ben Darnell [Sat, 1 Dec 2012 20:50:40 +0000 (15:50 -0500)] 
Add a mock.patch-compatible wrapper for options objects.

12 years agoDoc cleanups.
Ben Darnell [Tue, 27 Nov 2012 02:46:16 +0000 (21:46 -0500)] 
Doc cleanups.

* Fix doc generation for httpclient.py (unescaped \r\n)
* Manually specify signature of Template constructor
* Include IOLoop.time

Closes #644.

12 years agoErrorHandler no longer requires XSRF tokens.
Ben Darnell [Sun, 25 Nov 2012 17:01:14 +0000 (12:01 -0500)] 
ErrorHandler no longer requires XSRF tokens.

Closes #638.

12 years agoAdd protocol kwarg to HTTPServer constructor.
Ben Darnell [Sun, 25 Nov 2012 16:38:25 +0000 (11:38 -0500)] 
Add protocol kwarg to HTTPServer constructor.

12 years agoAccept Content-Length headers in 304 responses.
Ben Darnell [Sun, 25 Nov 2012 16:26:13 +0000 (11:26 -0500)] 
Accept Content-Length headers in 304 responses.

Closes #639.

12 years agoRemove now-redundant entries from next.rst, bump version to 2.4.post2.
Ben Darnell [Sun, 25 Nov 2012 03:28:13 +0000 (22:28 -0500)] 
Remove now-redundant entries from next.rst, bump version to 2.4.post2.

12 years agoMerge branch 'branch2.4'
Ben Darnell [Sun, 25 Nov 2012 02:54:18 +0000 (21:54 -0500)] 
Merge branch 'branch2.4'

Conflicts:
setup.py
tornado/__init__.py
tornado/test/auth_test.py
website/sphinx/releases.rst

12 years agoBump version to 2.4.1, update release notes. v2.4.1
Ben Darnell [Sun, 25 Nov 2012 02:22:10 +0000 (21:22 -0500)] 
Bump version to 2.4.1, update release notes.

12 years agoFix a bug with IOStream.read_until_close with a streaming_callback.
Ben Darnell [Fri, 9 Nov 2012 04:29:45 +0000 (23:29 -0500)] 
Fix a bug with IOStream.read_until_close with a streaming_callback.

If the underlying socket was already closed the buffered data
would be passed to the final callback rather than the streaming callback.

Conflicts:
website/sphinx/releases/next.rst

12 years agoFix TwitterMixin on Python 3.
Ben Darnell [Sat, 17 Nov 2012 20:15:31 +0000 (15:15 -0500)] 
Fix TwitterMixin on Python 3.

Also add tests, and add get_auth_http_client method to all auth mixins.

Closes #634.

Conflicts:
tornado/test/auth_test.py
website/sphinx/releases/next.rst

12 years agoFix a memory leak in stack_context.
Ben Darnell [Sat, 17 Nov 2012 21:35:42 +0000 (16:35 -0500)] 
Fix a memory leak in stack_context.

The old_contexts reference in StackContexts could maintain a chain of
old irrelevant contexts, so clear it once it's no longer needed.
This was mainly a problem in gen.engine, where additional contexts
would accumulate in memory (but not on the stack) for each asynchronous
operation.

Also clear the deactivate_stack_context in gen.Runner to allow
the StackContext to be garbage-collected sooner.

12 years agoUse AsyncHTTPClient's defaults option in AsyncHTTPSTestCase.
Ben Darnell [Mon, 19 Nov 2012 15:14:01 +0000 (10:14 -0500)] 
Use AsyncHTTPClient's defaults option in AsyncHTTPSTestCase.

Fix test_non_ssl_request, which has apparently been testing the wrong
thing for some time.

12 years agoRemove redundant logging of read errors in IOStream.
Ben Darnell [Mon, 19 Nov 2012 02:35:36 +0000 (21:35 -0500)] 
Remove redundant logging of read errors in IOStream.

The logging in read_from_fd is generally redundant with logging at
higher levels - the error would be logged again in _handle_read,
or propagated from _try_inline_read.

Closes #632.

12 years agoAllow default HTTPRequest attributes to be set globally via configure.
Ben Darnell [Mon, 19 Nov 2012 00:29:18 +0000 (19:29 -0500)] 
Allow default HTTPRequest attributes to be set globally via configure.

Closes #379.

12 years agoRemove outdated warnings and config instructions from simple_httpclient.
Ben Darnell [Sun, 18 Nov 2012 22:13:31 +0000 (17:13 -0500)] 
Remove outdated warnings and config instructions from simple_httpclient.

12 years agoMerge branch 'branch2.4'
Ben Darnell [Sun, 18 Nov 2012 21:24:49 +0000 (16:24 -0500)] 
Merge branch 'branch2.4'

Conflicts:
website/sphinx/database.rst

12 years agoUpgrade appengine website to python 2.7.
Ben Darnell [Sun, 18 Nov 2012 21:19:33 +0000 (16:19 -0500)] 
Upgrade appengine website to python 2.7.

12 years agoUpdate app engine id for HRD migration.
Ben Darnell [Sun, 18 Nov 2012 21:09:45 +0000 (16:09 -0500)] 
Update app engine id for HRD migration.

12 years agoDocument the deprecation of tornado.database in the 2.4 branch.
Ben Darnell [Sun, 18 Nov 2012 20:27:22 +0000 (15:27 -0500)] 
Document the deprecation of tornado.database in the 2.4 branch.

12 years agoMake header_callback behavior consistent across both HTTP clients.
Ben Darnell [Sun, 18 Nov 2012 17:25:13 +0000 (12:25 -0500)] 
Make header_callback behavior consistent across both HTTP clients.

SimpleAsyncHTTPClient now sends the first and last lines to the callback,
matching CurlAsyncHTTPClient's behavior.

All secondary callbacks are now wrapped for stack_context.

Closes #637.

12 years agoFix If-None-Match support for StaticFileHandler.
Ben Darnell [Sun, 18 Nov 2012 04:37:42 +0000 (23:37 -0500)] 
Fix If-None-Match support for StaticFileHandler.

No longer set Cache-Control: public on static files; redbot.org says
it generally doesn't do anything useful.

12 years agoFix a memory leak in stack_context.
Ben Darnell [Sat, 17 Nov 2012 21:35:42 +0000 (16:35 -0500)] 
Fix a memory leak in stack_context.

The old_contexts reference in StackContexts could maintain a chain of
old irrelevant contexts, so clear it once it's no longer needed.
This was mainly a problem in gen.engine, where additional contexts
would accumulate in memory (but not on the stack) for each asynchronous
operation.

Also clear the deactivate_stack_context in gen.Runner to allow
the StackContext to be garbage-collected sooner.

12 years agoEnsure that add_callback fails cleanly if called while IOLoop is closing.
Ben Darnell [Sat, 17 Nov 2012 20:44:21 +0000 (15:44 -0500)] 
Ensure that add_callback fails cleanly if called while IOLoop is closing.

Previously there would (sometimes) be an exception when writing to the
waker pipe.

Closes #635.

12 years agoFix TwitterMixin on Python 3.
Ben Darnell [Sat, 17 Nov 2012 20:15:31 +0000 (15:15 -0500)] 
Fix TwitterMixin on Python 3.

Also add tests, and add get_auth_http_client method to all auth mixins.

Closes #634.

12 years agoMerge pull request #627 from jparise/urlspec-repr
bdarnell [Sun, 11 Nov 2012 03:18:28 +0000 (19:18 -0800)] 
Merge pull request #627 from jparise/urlspec-repr

Add a helpful __repr__ implementation to URLSpec.

12 years agoMerge pull request #624 from pablopda/master
bdarnell [Sun, 11 Nov 2012 03:17:37 +0000 (19:17 -0800)] 
Merge pull request #624 from pablopda/master

Move README so github web interface recognize its markup language

12 years agoFix a bug with IOStream.read_until_close with a streaming_callback.
Ben Darnell [Fri, 9 Nov 2012 04:29:45 +0000 (23:29 -0500)] 
Fix a bug with IOStream.read_until_close with a streaming_callback.

If the underlying socket was already closed the buffered data
would be passed to the final callback rather than the streaming callback.

12 years agoAdd a helpful __repr__ implementation to URLSpec. 627/head
Jon Parise [Wed, 7 Nov 2012 00:04:36 +0000 (16:04 -0800)] 
Add a helpful __repr__ implementation to URLSpec.

12 years agoMv README so github web interface recognize its markup language 624/head
Pablo Perez De Angelis [Fri, 2 Nov 2012 21:29:40 +0000 (18:29 -0300)] 
Mv README so github web interface recognize its markup language

12 years agoRelease notes for 302/303 change.
Ben Darnell [Thu, 1 Nov 2012 17:23:27 +0000 (10:23 -0700)] 
Release notes for 302/303 change.

12 years agosimple_httpclient: Treat 302 like 303.
Ben Darnell [Thu, 1 Nov 2012 05:53:08 +0000 (22:53 -0700)] 
simple_httpclient: Treat 302 like 303.

Cherry-picked from https://github.com/bergundy/tornado/commit/e49b263de2f4aa7b9748531b2ccf6b50b28b1bd5

Closes #623.

12 years agoAsyncHTTPTestCase no longer closes AsyncHTTPClients on the global IOLoop.
Ben Darnell [Tue, 30 Oct 2012 05:33:54 +0000 (22:33 -0700)] 
AsyncHTTPTestCase no longer closes AsyncHTTPClients on the global IOLoop.

Code that uses the global IOLoop may retain a global reference to
an AsyncHTTPClient as well, which would become inoperable after a test
had closed it.

12 years agoAdded more sensical callback time verification. 616/head
Peter Sobot [Tue, 23 Oct 2012 21:06:08 +0000 (18:06 -0300)] 
Added more sensical callback time verification.

12 years agoAdded period check in PeriodicCallback
Peter Sobot [Tue, 23 Oct 2012 18:33:17 +0000 (15:33 -0300)] 
Added period check in PeriodicCallback

If a user currently passes in 0ms (hopefully by accident) as the
callback time for a periodic callback, Tornado consumes a huge amount
of CPU and never calls the function.

12 years agoAdd a comment to runtests.sh about python 3.
Ben Darnell [Fri, 19 Oct 2012 01:20:53 +0000 (21:20 -0400)] 
Add a comment to runtests.sh about python 3.

Closes #612.

12 years agoActually use add_callback_from_signal from the SIGCHLD handler.
Ben Darnell [Mon, 8 Oct 2012 02:11:37 +0000 (19:11 -0700)] 
Actually use add_callback_from_signal from the SIGCHLD handler.

12 years agoFix TwistedIOLoop on epoll.
Ben Darnell [Sun, 7 Oct 2012 23:59:36 +0000 (16:59 -0700)] 
Fix TwistedIOLoop on epoll.

Twisted's removeAll doesn't like it if a socket is closed without being
unregistered.  EPoll generates events slightly differently so be more
careful about doubled connectionLost events.

12 years agoImplement TwistedIOLoop, to bridge the gap with Twisted in the other direction.
Ben Darnell [Sun, 7 Oct 2012 21:21:42 +0000 (14:21 -0700)] 
Implement TwistedIOLoop, to bridge the gap with Twisted in the other direction.

This also serves as a proof of concept for the refactored IOLoop interface.

12 years agoRemove the method IOLoop.running.
Ben Darnell [Sun, 7 Oct 2012 23:02:50 +0000 (16:02 -0700)] 
Remove the method IOLoop.running.

12 years agoSplit IOLoop into a base class and poll-based implementation.
Ben Darnell [Sun, 7 Oct 2012 18:16:41 +0000 (11:16 -0700)] 
Split IOLoop into a base class and poll-based implementation.

The base class has all the methods with docstrings; nearly all the
implementation is in a new subclass PollIOLoop.

12 years agoMove IOLoop subclasses to their own modules under platform.
Ben Darnell [Sat, 6 Oct 2012 19:52:34 +0000 (12:52 -0700)] 
Move IOLoop subclasses to their own modules under platform.

12 years agoAdd a little more slack to this timing test.
Ben Darnell [Sat, 6 Oct 2012 19:51:25 +0000 (12:51 -0700)] 
Add a little more slack to this timing test.

It seems to fail a lot on VMs.

12 years agoCheck self.closed() in the inner read loop of IOStream.
Ben Darnell [Sun, 7 Oct 2012 04:06:52 +0000 (21:06 -0700)] 
Check self.closed() in the inner read loop of IOStream.

This was causing error logs in the keepalive tests (but only on epoll)

12 years agoAvoid creating multiple redundant autoreload callbacks.
Ben Darnell [Sat, 6 Oct 2012 05:09:07 +0000 (22:09 -0700)] 
Avoid creating multiple redundant autoreload callbacks.

12 years agoOne more log spam test: connect then immediately close the connection.
Ben Darnell [Fri, 5 Oct 2012 04:35:02 +0000 (21:35 -0700)] 
One more log spam test: connect then immediately close the connection.

12 years agoAdd tests and release notes for {% apply %} unicode fix.
Ben Darnell [Fri, 5 Oct 2012 04:14:41 +0000 (21:14 -0700)] 
Add tests and release notes for {% apply %} unicode fix.

12 years agoMerge remote-tracking branch 'dmitric/master'
Ben Darnell [Fri, 5 Oct 2012 04:08:27 +0000 (21:08 -0700)] 
Merge remote-tracking branch 'dmitric/master'

12 years agoFix typo in release notes (thanks jparise!))
Ben Darnell [Fri, 5 Oct 2012 04:01:56 +0000 (21:01 -0700)] 
Fix typo in release notes (thanks jparise!))

12 years agoEnsure result from apply block is utf8 606/head
Dmitri Cherniak [Thu, 4 Oct 2012 18:07:29 +0000 (14:07 -0400)] 
Ensure result from apply block is utf8

12 years agoReduce log spam from closed client connections.
Ben Darnell [Thu, 4 Oct 2012 05:36:46 +0000 (22:36 -0700)] 
Reduce log spam from closed client connections.

Added a bunch of tests for keepalive functionality and fixed two cases
where we'd log an exception when the client was gone.  ECONNRESET
errors in IOStream reads now just close the connection instead of
logging an error (the exception information is still available on
stream.error in the close callback for apps that want it).
HTTPConnection now also checks for a closed connection and cleans up
instead of logging an error.

IOStream now raises a new exception class StreamClosedError instead of
IOError.

12 years agoAdd time_func parameter to IOLoop, and make it possible to use time.monotonic.
Ben Darnell [Mon, 1 Oct 2012 06:57:49 +0000 (23:57 -0700)] 
Add time_func parameter to IOLoop, and make it possible to use time.monotonic.

This means that calls to IOLoop.add_timeout that pass a number must be
updated to use IOLoop.time instead of time.time.

There are still some places where we use time.time in the code, but they
are either places where wall time is desired, or non-critical deltas (e.g.
printing elapsed time at the end of a request).

Thanks to apenwarr and mgenti for pull requests and discussion relating to
this change. (#558 and #583)

12 years agoIOLoop poller implementations are now subclasses of IOLoop.
Ben Darnell [Mon, 1 Oct 2012 05:57:32 +0000 (22:57 -0700)] 
IOLoop poller implementations are now subclasses of IOLoop.

Update testing command-line flags to allow configuration of a non-default
IOLoop.

12 years agoExtract configure logic from AsyncHTTPClient to a base class.
Ben Darnell [Mon, 1 Oct 2012 05:19:59 +0000 (22:19 -0700)] 
Extract configure logic from AsyncHTTPClient to a base class.

IOLoop now extends this base class as well, although no other
implementations are provided yet.  This does not include the
pseudo-singleton magic from AsyncHTTPClient.

12 years agoAsyncHTTPClient: remove legacy magic around max_clients arg.
Ben Darnell [Mon, 1 Oct 2012 02:10:16 +0000 (19:10 -0700)] 
AsyncHTTPClient: remove legacy magic around max_clients arg.

Fix a bug in which configured kwargs would be applied to a non-configured
class.

12 years agoOptionParser now contains a dict rather than subclassing dict.
Ben Darnell [Sun, 30 Sep 2012 23:13:49 +0000 (16:13 -0700)] 
OptionParser now contains a dict rather than subclassing dict.

12 years agoDoc updates for the options module
Ben Darnell [Sun, 30 Sep 2012 23:06:21 +0000 (16:06 -0700)] 
Doc updates for the options module

12 years agoRename _Options to OptionParser, and fix bugs with --help
Ben Darnell [Sun, 30 Sep 2012 22:44:45 +0000 (15:44 -0700)] 
Rename _Options to OptionParser, and fix bugs with --help

12 years agoAdd per-option callbacks, and implement --help with them.
Ben Darnell [Sun, 30 Sep 2012 22:28:33 +0000 (15:28 -0700)] 
Add per-option callbacks, and implement --help with them.

12 years agoIntroduce parse callbacks in the options module.
Ben Darnell [Sun, 30 Sep 2012 22:05:29 +0000 (15:05 -0700)] 
Introduce parse callbacks in the options module.

This is a generalization of the existing magic for logging.  Logging
configuration is now moved to log.py.

12 years agoAsyncHTTPTestCase: bind the server port earlier so it's available
Ben Darnell [Sun, 30 Sep 2012 19:00:10 +0000 (12:00 -0700)] 
AsyncHTTPTestCase: bind the server port earlier so it's available
in user-overridable methods like get_app.

12 years agoAdd futures to travis and vm tests, update assorted dependency versions.
Ben Darnell [Sun, 30 Sep 2012 00:47:41 +0000 (17:47 -0700)] 
Add futures to travis and vm tests, update assorted dependency versions.

12 years agoCleanly shut down the ThreadPoolExecutor in Resolver tests.
Ben Darnell [Sun, 30 Sep 2012 00:46:50 +0000 (17:46 -0700)] 
Cleanly shut down the ThreadPoolExecutor in Resolver tests.

This was somehow causing a problem on Ubuntu 10.04.

12 years agoDoc coverage updates
Ben Darnell [Sat, 29 Sep 2012 23:57:04 +0000 (16:57 -0700)] 
Doc coverage updates

12 years agoRelease notes for futures branch merge.
Ben Darnell [Sat, 29 Sep 2012 23:49:42 +0000 (16:49 -0700)] 
Release notes for futures branch merge.

12 years agoMerge branch 'futures'
Ben Darnell [Sat, 29 Sep 2012 23:39:44 +0000 (16:39 -0700)] 
Merge branch 'futures'

12 years agoDrop twisted tests from pypy-full configuration.
Ben Darnell [Sat, 29 Sep 2012 23:35:57 +0000 (16:35 -0700)] 
Drop twisted tests from pypy-full configuration.

These tests seem to fail much more often on the futures branch than
master for some unknown reason. (the failures are in the
subprocess-related tests)

12 years agoRelease notes for stack_context changes
Ben Darnell [Sat, 29 Sep 2012 23:20:51 +0000 (16:20 -0700)] 
Release notes for stack_context changes

12 years agoMerge branch 'master' into futures
Ben Darnell [Sat, 29 Sep 2012 22:55:47 +0000 (15:55 -0700)] 
Merge branch 'master' into futures

Conflicts:
tornado/autoreload.py
tornado/ioloop.py
tornado/netutil.py
tornado/simple_httpclient.py
tornado/test/ioloop_test.py
tornado/test/runtests.py
tox.ini

12 years agoSimplify StackContext logic and behavior.
Ben Darnell [Sat, 29 Sep 2012 21:29:22 +0000 (14:29 -0700)] 
Simplify StackContext logic and behavior.

Previously, there was an optimization to avoid recreating contexts
that were already on the stack.  This optimization rarely mattered
(especially given the movement to run all callbacks through
IOLoop.add_callback), and sometimes caused surprising behavior as
other exception handlers could be inserted between stack contexts that
expected to be adjacent to each other or to the wrapped function.  Now
each wrapped function recreates its full stack of contexts, even if
some of those contexts were already on the stack.

This change allows a use of NullContext in testing.py to be
removed.

12 years agoImprove isolation of stack contexts.
Ben Darnell [Sat, 29 Sep 2012 21:07:10 +0000 (14:07 -0700)] 
Improve isolation of stack contexts.

Previously, a chain of callbacks started without any contexts could
accidentally pick up other contexts based on where the callbacks
were run.  This was due to a mistaken optimization in the no-context
case; now the behavior is the same whether the initial context was empty
or not.

12 years agoRelease note updates
Ben Darnell [Sat, 29 Sep 2012 20:16:23 +0000 (13:16 -0700)] 
Release note updates

12 years agoAdd IOLoop.add_callback_from_signal, which avoids deadlocks
Ben Darnell [Sat, 29 Sep 2012 20:08:10 +0000 (13:08 -0700)] 
Add IOLoop.add_callback_from_signal, which avoids deadlocks
which can occur when calling add_callback from a signal handler.

Also fix an issue in the recent set_wakeup_fd change when running
an IOLoop on a non-main thread.

12 years agoPython 3.3 includes a fast time-independent comparison function, so use
Ben Darnell [Sat, 29 Sep 2012 18:27:46 +0000 (11:27 -0700)] 
Python 3.3 includes a fast time-independent comparison function, so use
it when available.

12 years agoApply my own suggested changes from pull request #555.
Ben Darnell [Mon, 24 Sep 2012 04:21:38 +0000 (00:21 -0400)] 
Apply my own suggested changes from pull request #555.

12 years agoAllow non-standard HTTP codes to be passed with HTTPError.
Ben Darnell [Mon, 24 Sep 2012 04:13:25 +0000 (00:13 -0400)] 
Allow non-standard HTTP codes to be passed with HTTPError.

12 years agoMerge branch 'master' into merge
Ben Darnell [Mon, 24 Sep 2012 03:26:24 +0000 (23:26 -0400)] 
Merge branch 'master' into merge

Conflicts:
tornado/simple_httpclient.py
tornado/test/web_test.py

12 years agoFix status/reason tests for py3, -curl, and -opt modes
Ben Darnell [Mon, 24 Sep 2012 03:12:17 +0000 (23:12 -0400)] 
Fix status/reason tests for py3, -curl, and -opt modes

12 years agoSet Date header by default on all responses.
Ben Darnell [Thu, 20 Sep 2012 06:26:01 +0000 (23:26 -0700)] 
Set Date header by default on all responses.

12 years agoSupport sending ping frames, trigger callback on pong frames.
Joachim Bauch [Tue, 18 Sep 2012 08:56:54 +0000 (10:56 +0200)] 
Support sending ping frames, trigger callback on pong frames.

12 years agoDon't try to call set_wakeup_fd on windows, it crashes the process.
Ben Darnell [Thu, 20 Sep 2012 06:02:56 +0000 (23:02 -0700)] 
Don't try to call set_wakeup_fd on windows, it crashes the process.

12 years agoUse signal.set_wakeup_fd in IOLoop to close a race with signal handlers.
Ben Darnell [Mon, 17 Sep 2012 07:22:39 +0000 (00:22 -0700)] 
Use signal.set_wakeup_fd in IOLoop to close a race with signal handlers.

12 years agoSubprocess.returncode should match subprocess.Popen.returncode.
Ben Darnell [Mon, 17 Sep 2012 06:39:10 +0000 (23:39 -0700)] 
Subprocess.returncode should match subprocess.Popen.returncode.

12 years agoSkip pipe and subprocess tests on windows.
Ben Darnell [Mon, 17 Sep 2012 06:35:20 +0000 (23:35 -0700)] 
Skip pipe and subprocess tests on windows.

12 years agoAdd a SIGCHILD handler to Subprocess.
Ben Darnell [Mon, 17 Sep 2012 06:24:45 +0000 (23:24 -0700)] 
Add a SIGCHILD handler to Subprocess.