]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
10 years agoMerge branch 'master' of https://github.com/tornadoweb/tornado 1399/head
Martin Hoefling [Sun, 19 Apr 2015 13:23:45 +0000 (15:23 +0200)] 
Merge branch 'master' of https://github.com/tornadoweb/tornado

10 years agoDocumentation for key versioning added
Martin Hoefling [Sun, 19 Apr 2015 13:13:51 +0000 (15:13 +0200)] 
Documentation for key versioning added

10 years agoKey versioning: review comments addressed
Martin Hoefling [Sun, 19 Apr 2015 12:47:18 +0000 (14:47 +0200)] 
Key versioning: review comments addressed

10 years agoDelay shutdown of the IOLoop in sync HTTPClient test.
Ben Darnell [Sun, 19 Apr 2015 02:54:31 +0000 (22:54 -0400)] 
Delay shutdown of the IOLoop in sync HTTPClient test.

This appears to cause spurious logs in HTTP/2 tests.

10 years agoFix WaitIterator when no hard reference is kept.
Ben Darnell [Sat, 18 Apr 2015 23:19:00 +0000 (19:19 -0400)] 
Fix WaitIterator when no hard reference is kept.

Closes #1397.

10 years agoClean up and document run_on_executor kwargs change.
Ben Darnell [Sat, 18 Apr 2015 22:53:38 +0000 (18:53 -0400)] 
Clean up and document run_on_executor kwargs change.

10 years agoMerge pull request #1406 from legnaleurc/run_on_executor
Ben Darnell [Sat, 18 Apr 2015 22:41:53 +0000 (18:41 -0400)] 
Merge pull request #1406 from legnaleurc/run_on_executor

Add arguments to run_on_executor

10 years agoFix exception handling in CurlAsyncHTTPClient._process_queue.
Ben Darnell [Sat, 18 Apr 2015 22:15:14 +0000 (18:15 -0400)] 
Fix exception handling in CurlAsyncHTTPClient._process_queue.

Previously it would allow exceptions to escape, which worked only if
_process_queue were called by fetch_impl instead of
_finish_pending_requests.

Closes #1413.

10 years agoAdd raise_error behavior to Subprocess.wait_for_exit.
Ben Darnell [Sat, 18 Apr 2015 18:12:44 +0000 (14:12 -0400)] 
Add raise_error behavior to Subprocess.wait_for_exit.

Closes #1205.

10 years agoMerge pull request #1419 from kippandrew/fix-client-max-body
Ben Darnell [Sat, 18 Apr 2015 17:52:14 +0000 (13:52 -0400)] 
Merge pull request #1419 from kippandrew/fix-client-max-body

Add max_body_size parameter to SimpleHTTPClient

10 years agoUse the correct expression for detecting the presence of asyncio.
Ben Darnell [Sat, 18 Apr 2015 16:21:10 +0000 (12:21 -0400)] 
Use the correct expression for detecting the presence of asyncio.

10 years agoFix typo in travis.yml
Ben Darnell [Sat, 18 Apr 2015 16:06:40 +0000 (12:06 -0400)] 
Fix typo in travis.yml

10 years agoAdd AsyncIOLoop to travis.yml
Ben Darnell [Sat, 18 Apr 2015 16:00:31 +0000 (12:00 -0400)] 
Add AsyncIOLoop to travis.yml

10 years agoAdd **kwargs to IOLoop initializers.
Ben Darnell [Sat, 18 Apr 2015 15:57:22 +0000 (11:57 -0400)] 
Add **kwargs to IOLoop initializers.

This makes them compatible with the new make_current argument.

Add additional delay in test_streaming_until_close_future
for compatibility with AsyncIOLoop.

10 years agoMerge pull request #1421 from ajdavis/spider-example
Ben Darnell [Fri, 17 Apr 2015 14:29:38 +0000 (10:29 -0400)] 
Merge pull request #1421 from ajdavis/spider-example

Add a web spider example to demonstrate Queue.

10 years agoRemove unnecessary "start-file" markup. 1421/head
A. Jesse Jiryu Davis [Fri, 17 Apr 2015 14:04:35 +0000 (10:04 -0400)] 
Remove unnecessary "start-file" markup.

10 years agoRemove redundant description of web-spider demo.
A. Jesse Jiryu Davis [Wed, 15 Apr 2015 01:29:23 +0000 (21:29 -0400)] 
Remove redundant description of web-spider demo.

10 years agoAdd a web spider example to demonstrate Queue.
A. Jesse Jiryu Davis [Wed, 15 Apr 2015 01:24:42 +0000 (21:24 -0400)] 
Add a web spider example to demonstrate Queue.

10 years agoFix for python 3 1419/head
Andy Kipp [Tue, 14 Apr 2015 15:27:55 +0000 (11:27 -0400)] 
Fix for python 3

10 years agoSend max_body_size to HTTP1Connection
Andy Kipp [Tue, 14 Apr 2015 14:18:54 +0000 (10:18 -0400)] 
Send max_body_size to HTTP1Connection

10 years agoMerge pull request #1417 from ajdavis/locks-doctests
Ben Darnell [Mon, 13 Apr 2015 19:25:43 +0000 (20:25 +0100)] 
Merge pull request #1417 from ajdavis/locks-doctests

Move doctests from locks.rst to locks.py.

10 years agoMove doctests from locks.rst to locks.py docstrings. 1417/head
A. Jesse Jiryu Davis [Sun, 12 Apr 2015 21:16:08 +0000 (17:16 -0400)] 
Move doctests from locks.rst to locks.py docstrings.

For consistency with queues doctests.

10 years agoMerge pull request #1416 from ajdavis/reliable-queues-doctest
Ben Darnell [Sun, 12 Apr 2015 20:19:31 +0000 (21:19 +0100)] 
Merge pull request #1416 from ajdavis/reliable-queues-doctest

reliable-queues-doctest

10 years agoReliable Semaphore doctest. 1416/head
A. Jesse Jiryu Davis [Sun, 12 Apr 2015 17:28:46 +0000 (13:28 -0400)] 
Reliable Semaphore doctest.

100ms sleep doesn't always order the test output on Travis slaves.

10 years agoMerge pull request #1409 from ajdavis/document-queues
Ben Darnell [Fri, 10 Apr 2015 16:46:56 +0000 (17:46 +0100)] 
Merge pull request #1409 from ajdavis/document-queues

Document queues.

10 years agoMerge pull request #1408 from ajdavis/doc-bounded-sem
Ben Darnell [Fri, 10 Apr 2015 16:46:47 +0000 (17:46 +0100)] 
Merge pull request #1408 from ajdavis/doc-bounded-sem

Document locks.BoundedSemaphore.

10 years agoRemove redundant doctest of BoundedSemaphore.release. 1408/head
A. Jesse Jiryu Davis [Fri, 10 Apr 2015 04:01:58 +0000 (00:01 -0400)] 
Remove redundant doctest of BoundedSemaphore.release.

10 years agoMove doctests from queues.rst to queues.py. 1409/head
A. Jesse Jiryu Davis [Fri, 10 Apr 2015 03:58:17 +0000 (23:58 -0400)] 
Move doctests from queues.rst to queues.py.

10 years agoAdd "autoclass" for PriorityQueue and LifoQueue.
A. Jesse Jiryu Davis [Fri, 10 Apr 2015 03:50:12 +0000 (23:50 -0400)] 
Add "autoclass" for PriorityQueue and LifoQueue.

10 years agoUse autoexception for QueueFull/Empty docs.
A. Jesse Jiryu Davis [Fri, 10 Apr 2015 03:43:55 +0000 (23:43 -0400)] 
Use autoexception for QueueFull/Empty docs.

10 years agoMerge pull request #1412 from abhinav/master
Ben Darnell [Thu, 9 Apr 2015 02:10:04 +0000 (22:10 -0400)] 
Merge pull request #1412 from abhinav/master

Allow the same future multiple times in `multi_future`

10 years agoMerge pull request #1411 from Liuchang0812/fix-format
Ben Darnell [Wed, 8 Apr 2015 03:53:29 +0000 (23:53 -0400)] 
Merge pull request #1411 from Liuchang0812/fix-format

use key-word "super" replace hard code

10 years agoAllow the same future multiple times in `multi_future` 1412/head
Abhinav Gupta [Tue, 7 Apr 2015 18:57:45 +0000 (11:57 -0700)] 
Allow the same future multiple times in `multi_future`

This prevents failures in cases like the following:

    f = <some future>
    yield [f, f]

10 years agoUpdate blog.py 1411/head
whu_liuchang [Sun, 5 Apr 2015 12:04:50 +0000 (20:04 +0800)] 
Update blog.py

use recommended style

10 years agoDocument queues.
A. Jesse Jiryu Davis [Sat, 4 Apr 2015 13:08:22 +0000 (09:08 -0400)] 
Document queues.

10 years agoDocument locks.BoundedSemaphore.
A. Jesse Jiryu Davis [Sat, 4 Apr 2015 12:39:11 +0000 (08:39 -0400)] 
Document locks.BoundedSemaphore.

10 years agoMerge pull request #1405 from scipetr/patch-1
Ben Darnell [Fri, 3 Apr 2015 17:52:49 +0000 (13:52 -0400)] 
Merge pull request #1405 from scipetr/patch-1

Fixed autoreload for Python 3

10 years agoAdd testcases. 1406/head
Wei-Cheng Pan [Thu, 2 Apr 2015 14:22:36 +0000 (23:22 +0900)] 
Add testcases.

10 years agoFixed autoreload for Python 3 1405/head
Evgeniy Dobrohvalov [Thu, 2 Apr 2015 13:49:36 +0000 (16:49 +0300)] 
Fixed autoreload for Python 3

Changed th system module values check to return a list.
In Python 3 it returns a dict_view which could occassionally produce
a runtime error of "dictionary changed size during iteration".

10 years agoAllow clients to specify attrs in decorator.
Wei-Cheng Pan [Tue, 31 Mar 2015 10:15:49 +0000 (18:15 +0800)] 
Allow clients to specify attrs in decorator.

Clients can specify `executor` and `io_loop` attribute name in
`run_on_executor` decorator.

10 years agoMerge pull request #1401 from ajdavis/document-semaphore
Ben Darnell [Tue, 31 Mar 2015 03:30:56 +0000 (23:30 -0400)] 
Merge pull request #1401 from ajdavis/document-semaphore

Document locks.Semaphore.

10 years agoDocument locks.Semaphore. 1401/head
A. Jesse Jiryu Davis [Tue, 31 Mar 2015 02:41:05 +0000 (22:41 -0400)] 
Document locks.Semaphore.

10 years agoUse more consistent language in exception logs.
Ben Darnell [Mon, 30 Mar 2015 03:22:55 +0000 (23:22 -0400)] 
Use more consistent language in exception logs.

10 years agoClean up some more tests that fail or log with HTTP/2.
Ben Darnell [Mon, 30 Mar 2015 00:55:28 +0000 (20:55 -0400)] 
Clean up some more tests that fail or log with HTTP/2.

10 years agoAdd make_current keyword argument to IOLoop constructor.
Ben Darnell [Sun, 29 Mar 2015 20:22:26 +0000 (16:22 -0400)] 
Add make_current keyword argument to IOLoop constructor.

This allows applications to create an IOLoop to be started in another
thread without making it current in the originating thread.

Update docs to use IOLoop.current() in place of IOLoop.instance() when
starting the loop.

Closes #1390.

10 years agoAdd a quiet_exceptions argument to gen.Multi and gen.multi_future.
Ben Darnell [Sun, 29 Mar 2015 18:17:36 +0000 (14:17 -0400)] 
Add a quiet_exceptions argument to gen.Multi and gen.multi_future.

Closes #1378.

10 years agogen.multi_future and gen.Multi log any exceptions after the first.
Ben Darnell [Sun, 29 Mar 2015 18:04:46 +0000 (14:04 -0400)] 
gen.multi_future and gen.Multi log any exceptions after the first.

They were already logged when the Future was GC'd, but this is
cleaner and more reliable than the destructor hook.

See #1378.

10 years agoUpdate next-release notes
Ben Darnell [Sun, 29 Mar 2015 16:55:21 +0000 (12:55 -0400)] 
Update next-release notes

10 years agoRemove the deprecated/obsolete auth mixins.
Ben Darnell [Sun, 29 Mar 2015 16:05:30 +0000 (12:05 -0400)] 
Remove the deprecated/obsolete auth mixins.

Both Google's OpenID service and FriendFeed are slated to shut down
before the next release of Tornado, and FacebookMixin has been
deprecated in favor of OAuth 2.0 for a long time.

10 years agoMerge remote-tracking branch 'origin/stable'
Ben Darnell [Sun, 29 Mar 2015 15:47:32 +0000 (11:47 -0400)] 
Merge remote-tracking branch 'origin/stable'

10 years agoReplace blog demo's google login with a simple email/password scheme.
Ben Darnell [Sun, 29 Mar 2015 15:45:50 +0000 (11:45 -0400)] 
Replace blog demo's google login with a simple email/password scheme.

10 years agoCookie secret key versioning support
Martin Hoefling [Sun, 29 Mar 2015 15:00:59 +0000 (17:00 +0200)] 
Cookie secret key versioning support

10 years agoAdd a docker-based environment for running the blog demo.
Ben Darnell [Sat, 28 Mar 2015 19:27:56 +0000 (15:27 -0400)] 
Add a docker-based environment for running the blog demo.

10 years agoRemove GoogleMixin auth demo.
Ben Darnell [Sat, 28 Mar 2015 16:43:09 +0000 (12:43 -0400)] 
Remove GoogleMixin auth demo.

GoogleMixin is going away, and the remaining auth varieties are covered
by the facebook and twitter demos.

10 years agoRemove authentication from chat demo.
Ben Darnell [Sat, 28 Mar 2015 16:34:14 +0000 (12:34 -0400)] 
Remove authentication from chat demo.

Google OpenID authentication is shutting down soon and its replacement
requires app registration, so it's better to make this demo like the
websocket one to show off long-polling concepts without auth-related
complexity.

10 years agoMerge pull request #1398 from ajdavis/event-doc
Ben Darnell [Sat, 28 Mar 2015 15:14:21 +0000 (11:14 -0400)] 
Merge pull request #1398 from ajdavis/event-doc

Document locks.Event.

10 years agoClarify event.wait's blocking behavior. 1398/head
A. Jesse Jiryu Davis [Sat, 28 Mar 2015 10:02:32 +0000 (06:02 -0400)] 
Clarify event.wait's blocking behavior.

10 years agoMore concise locks examples.
A. Jesse Jiryu Davis [Fri, 27 Mar 2015 10:20:40 +0000 (06:20 -0400)] 
More concise locks examples.

10 years agoDocument locks.Event.
A. Jesse Jiryu Davis [Fri, 27 Mar 2015 10:17:31 +0000 (06:17 -0400)] 
Document locks.Event.

10 years agoFix read_until_close's Future return with streaming_callback.
Ben Darnell [Fri, 27 Mar 2015 03:50:15 +0000 (23:50 -0400)] 
Fix read_until_close's Future return with streaming_callback.

Fixes #1395.

10 years agoAdd Subprocess.wait_for_exit, a coro-friendly set_exit_callback().
Ben Darnell [Fri, 27 Mar 2015 03:36:43 +0000 (23:36 -0400)] 
Add Subprocess.wait_for_exit, a coro-friendly set_exit_callback().

Fixes #1391.

10 years agoClarify documentation around `@asynchronous`.
Ben Darnell [Fri, 27 Mar 2015 03:20:58 +0000 (23:20 -0400)] 
Clarify documentation around `@asynchronous`.

The lack of `@asynchronous` is no longer the most likely cause
of write-after-finish errors, and we should discourage the
combination of `@asynchronous` and `@coroutine`.

Include some more context in the error message for RequestHandler.write(list).

10 years agoMerge pull request #1396 from ajdavis/locks-doc
Ben Darnell [Thu, 26 Mar 2015 12:30:31 +0000 (08:30 -0400)] 
Merge pull request #1396 from ajdavis/locks-doc

Document tornado.locks.

10 years agoMake specific example code for Condition. 1396/head
A. Jesse Jiryu Davis [Thu, 26 Mar 2015 10:31:57 +0000 (06:31 -0400)] 
Make specific example code for Condition.

10 years agoReplace "loop" with "io_loop" in locks example.
A. Jesse Jiryu Davis [Thu, 26 Mar 2015 10:19:47 +0000 (06:19 -0400)] 
Replace "loop" with "io_loop" in locks example.

10 years agoDocument tornado.locks.
A. Jesse Jiryu Davis [Wed, 25 Mar 2015 10:18:32 +0000 (06:18 -0400)] 
Document tornado.locks.

10 years agoMerge pull request #1394 from ajdavis/queue-subclasses 1089/head
Ben Darnell [Wed, 25 Mar 2015 00:40:00 +0000 (20:40 -0400)] 
Merge pull request #1394 from ajdavis/queue-subclasses

Queue subclasses.

10 years agoAdd PriorityQueue and LifoQueue. 1394/head
A. Jesse Jiryu Davis [Tue, 24 Mar 2015 03:35:20 +0000 (23:35 -0400)] 
Add PriorityQueue and LifoQueue.

10 years agoRedundant sentence.
A. Jesse Jiryu Davis [Tue, 24 Mar 2015 03:16:22 +0000 (23:16 -0400)] 
Redundant sentence.

10 years agoGuard against messages containing % signs in web.HTTPError.
Ben Darnell [Fri, 20 Mar 2015 19:28:53 +0000 (15:28 -0400)] 
Guard against messages containing % signs in web.HTTPError.

This occurs in cases like RequestHandler.get_argument which
build their own message string instead of passing a printf
string and args to HTTPError.

Fixes #1393.

10 years agoFinish incomplete sentence in docstring.
Ben Darnell [Fri, 20 Mar 2015 01:29:26 +0000 (21:29 -0400)] 
Finish incomplete sentence in docstring.

Fixes #1389

10 years agoMerge pull request #1388 from arikfr/patch-1
Ben Darnell [Wed, 18 Mar 2015 14:32:34 +0000 (10:32 -0400)] 
Merge pull request #1388 from arikfr/patch-1

Small documentation fix: "Google OpenID" -> "Google OAuth".

10 years agoSmall documentation fix: "Google OpenID" -> "Google OAuth". 1388/head
Arik Fraimovich [Wed, 18 Mar 2015 13:51:40 +0000 (15:51 +0200)] 
Small documentation fix: "Google OpenID" -> "Google OAuth".

10 years agoMerge pull request #1381 from ajdavis/locks-cancel-timeouts
Ben Darnell [Tue, 17 Mar 2015 01:53:18 +0000 (21:53 -0400)] 
Merge pull request #1381 from ajdavis/locks-cancel-timeouts

Cancel timeouts in Condition.wait and Semaphore.acquire.

10 years agoMerge pull request #1382 from mgenti/appengine-fix
Ben Darnell [Tue, 17 Mar 2015 01:52:27 +0000 (21:52 -0400)] 
Merge pull request #1382 from mgenti/appengine-fix

Fix for running tornado in app engine under Windows

10 years agoAPPENGINE_RUNTIME should be checked before nt 1382/head
Mark Guagenti [Mon, 16 Mar 2015 18:43:31 +0000 (13:43 -0500)] 
APPENGINE_RUNTIME should be checked before nt

10 years agoCancel timeouts in Condition.wait and Semaphore.acquire. 1381/head
A. Jesse Jiryu Davis [Mon, 16 Mar 2015 13:04:04 +0000 (09:04 -0400)] 
Cancel timeouts in Condition.wait and Semaphore.acquire.

10 years agoMerge pull request #1380 from ajdavis/queues
Ben Darnell [Mon, 16 Mar 2015 02:00:58 +0000 (22:00 -0400)] 
Merge pull request #1380 from ajdavis/queues

Add tornado.queues.

10 years agoCancel timeouts if Queue.get or put are resolved first. 1380/head
A. Jesse Jiryu Davis [Mon, 16 Mar 2015 01:09:12 +0000 (21:09 -0400)] 
Cancel timeouts if Queue.get or put are resolved first.

10 years agoUnused import.
A. Jesse Jiryu Davis [Mon, 16 Mar 2015 01:08:36 +0000 (21:08 -0400)] 
Unused import.

10 years agoFactor put with put_nowait, and get with get_nowait.
A. Jesse Jiryu Davis [Sun, 15 Mar 2015 21:47:13 +0000 (17:47 -0400)] 
Factor put with put_nowait, and get with get_nowait.

10 years agoput() doesn't defer unblocking get().
A. Jesse Jiryu Davis [Sun, 15 Mar 2015 21:41:55 +0000 (17:41 -0400)] 
put() doesn't defer unblocking get().

10 years agoAdd tornado.queues.
A. Jesse Jiryu Davis [Sat, 14 Mar 2015 21:52:39 +0000 (17:52 -0400)] 
Add tornado.queues.

10 years agoMake some tests less dependent on implementation details
Ben Darnell [Sat, 14 Mar 2015 17:37:01 +0000 (13:37 -0400)] 
Make some tests less dependent on implementation details

10 years agoMark some tests as requiring HTTP/1.x
Ben Darnell [Sat, 14 Mar 2015 14:15:57 +0000 (10:15 -0400)] 
Mark some tests as requiring HTTP/1.x

10 years agoWSGIContainer now uses HTTPConnection to write its response.
Ben Darnell [Sat, 14 Mar 2015 04:33:41 +0000 (00:33 -0400)] 
WSGIContainer now uses HTTPConnection to write its response.

10 years agoAlso make certifi optional on app engine.
Ben Darnell [Fri, 13 Mar 2015 22:48:31 +0000 (18:48 -0400)] 
Also make certifi optional on app engine.

10 years agoMerge pull request #1379 from mgenti/appengine-fix
Ben Darnell [Fri, 13 Mar 2015 22:45:00 +0000 (18:45 -0400)] 
Merge pull request #1379 from mgenti/appengine-fix

Fix for using Tornado in GAE

10 years agoGAE does not have the ssl module so we can't access ssl.CERT_REQUIRED 1379/head
Mark Guagenti [Fri, 13 Mar 2015 17:29:23 +0000 (12:29 -0500)] 
GAE does not have the ssl module so we can't access ssl.CERT_REQUIRED

10 years agoMerge pull request #1376 from rutsky/patch-1
Ben Darnell [Thu, 12 Mar 2015 13:57:26 +0000 (09:57 -0400)] 
Merge pull request #1376 from rutsky/patch-1

fix typo: "javscript"

10 years agofix typo: "javscript" 1376/head
Vladimir Rutsky [Thu, 12 Mar 2015 10:34:27 +0000 (13:34 +0300)] 
fix typo: "javscript"

10 years agoMerge pull request #1375 from rutsky/patch-1
Ben Darnell [Wed, 11 Mar 2015 14:49:26 +0000 (10:49 -0400)] 
Merge pull request #1375 from rutsky/patch-1

fix typo: "initalization"

10 years agofix typo: "initalization" 1375/head
Vladimir Rutsky [Wed, 11 Mar 2015 13:55:56 +0000 (16:55 +0300)] 
fix typo: "initalization"

10 years agoMerge pull request #1373 from daftshady/patch
Ben Darnell [Tue, 10 Mar 2015 02:25:50 +0000 (22:25 -0400)] 
Merge pull request #1373 from daftshady/patch

Fixed double slash redirect issue

10 years agotemporarily fixed double slash redirect issue 1373/head
daftshady [Mon, 9 Mar 2015 04:06:33 +0000 (13:06 +0900)] 
temporarily fixed double slash redirect issue

10 years agosimple_httpclient: finish() should be called even for body-less GET.
Ben Darnell [Mon, 9 Mar 2015 03:08:25 +0000 (23:08 -0400)] 
simple_httpclient: finish() should be called even for body-less GET.

This matters for HTTP2 where there is an explicit end-stream marker.

10 years agoRemove a special case that avoided using curl in tests for HTTPS.
Ben Darnell [Mon, 9 Mar 2015 02:04:59 +0000 (22:04 -0400)] 
Remove a special case that avoided using curl in tests for HTTPS.

This problem should have long since been fixed; any problematic
configurations don't deserve to misleadingly pass the tests.

10 years agoAdd a couple of private subclsasing hooks in simple_httpclient.
Ben Darnell [Mon, 9 Mar 2015 00:18:15 +0000 (20:18 -0400)] 
Add a couple of private subclsasing hooks in simple_httpclient.

10 years agoMake HTTPServer Configurable.
Ben Darnell [Sun, 8 Mar 2015 23:05:28 +0000 (19:05 -0400)] 
Make HTTPServer Configurable.

Relax some overly-specific tests.

10 years agoSupport positional arguments to Configurable.initialize.
Ben Darnell [Sun, 8 Mar 2015 23:05:11 +0000 (19:05 -0400)] 
Support positional arguments to Configurable.initialize.