]>
git.ipfire.org Git - thirdparty/tornado.git/log
daftshady [Mon, 9 Mar 2015 04:06:33 +0000 (13:06 +0900)]
temporarily fixed double slash redirect issue
Ben Darnell [Sun, 8 Mar 2015 14:33:40 +0000 (10:33 -0400)]
Make _request_summary handle remote_ip of None.
HTTPServerRequest has a default of None here although it is
set by both HTTPServer and WSGIAdapter.
Ben Darnell [Sun, 8 Mar 2015 14:23:05 +0000 (10:23 -0400)]
Improve logging when _handle_request_exception fails.
Stop discarding the exception returned by _execute.
Ben Darnell [Sun, 8 Mar 2015 14:02:19 +0000 (10:02 -0400)]
Add @wsgi_safe decorator to a couple of web tests.
Ben Darnell [Sun, 8 Mar 2015 04:12:41 +0000 (23:12 -0500)]
Allow TCPServer.handle_stream to be a coroutine
Ben Darnell [Sun, 8 Mar 2015 00:43:57 +0000 (19:43 -0500)]
Add SSLIOStream.wait_for_handshake.
This allows server-side applications to wait for the handshake to
complete in order to verify client certificates or use NPN/ALPN.
Fix a discrepancy between the callback and Future modes of
SSLIOStream.connect; now they both wait for the handshake to
complete.
Ben Darnell [Sat, 7 Mar 2015 17:58:20 +0000 (12:58 -0500)]
Merge pull request #1371 from ysimonson/feature/get-arguments-guard
Prevent bad calls to get_arguments with a presumed default value
Yusuf Simonson [Sat, 7 Mar 2015 17:34:37 +0000 (12:34 -0500)]
Prevent bad calls to get_arguments with a presumed default value
Ben Darnell [Fri, 6 Mar 2015 03:56:48 +0000 (22:56 -0500)]
Merge pull request #1274 from daftshady/etag
Fixed #1218.
daftshady [Thu, 5 Mar 2015 11:56:29 +0000 (20:56 +0900)]
removed newline
daftshady [Thu, 5 Mar 2015 11:52:50 +0000 (20:52 +0900)]
added etag tests to web_test
daftshady [Thu, 5 Mar 2015 08:58:55 +0000 (17:58 +0900)]
fixed bytes error in `check_etag_header` so that it can run in python3
daftshady [Mon, 2 Mar 2015 08:35:50 +0000 (17:35 +0900)]
added etag testcases to red_test
daftshady [Mon, 2 Mar 2015 08:34:42 +0000 (17:34 +0900)]
use weak comparison function when comparing entity-tags
daftshady [Fri, 30 Jan 2015 20:49:46 +0000 (05:49 +0900)]
handle multiple etags with regex
daftshady [Fri, 12 Dec 2014 11:05:35 +0000 (20:05 +0900)]
comment typo
daftshady [Fri, 12 Dec 2014 10:49:13 +0000 (19:49 +0900)]
correctly parse If-None-Match header
Ben Darnell [Thu, 5 Mar 2015 04:25:59 +0000 (23:25 -0500)]
Count SSL_ERROR_EOF as a kind of connection reset.
This reduces log spam and lets us remove an old (and timing-sensitive)
test workaround.
Closes #1362.
Ben Darnell [Thu, 5 Mar 2015 03:27:41 +0000 (22:27 -0500)]
Fix raise_error=False in synchronous HTTPClient.
The call to rethrow was redundant when raise_error was true,
and caused settings of raise_error=False to be ignored.
Closes #1351.
Ben Darnell [Thu, 5 Mar 2015 03:23:24 +0000 (22:23 -0500)]
Fix an error in autoreload on windows.
Our pre-exec cleanup causes problems on platforms where we spawn
a new process and call sys.exit.
Closes #1360.
Ben Darnell [Wed, 4 Mar 2015 05:01:43 +0000 (00:01 -0500)]
Merge branch 'branch4.1'
Ben Darnell [Wed, 4 Mar 2015 05:01:05 +0000 (00:01 -0500)]
Add an FAQ page.
Ben Darnell [Wed, 4 Mar 2015 03:51:17 +0000 (22:51 -0500)]
Fix the doc build.
Readthedocs' mirror of python's intersphinx index appears to
be gone.
Ben Darnell [Wed, 4 Mar 2015 03:51:17 +0000 (22:51 -0500)]
Fix the doc build.
Readthedocs' mirror of python's intersphinx index appears to
be gone.
Ben Darnell [Wed, 4 Mar 2015 01:32:08 +0000 (20:32 -0500)]
Merge pull request #1366 from ajdavis/semaphore-garbage-collect
Clean up timed-out waiters in Semaphore.
A. Jesse Jiryu Davis [Tue, 3 Mar 2015 17:14:57 +0000 (12:14 -0500)]
Clean up timed-out waiters in Semaphore.
Ben Darnell [Sun, 1 Mar 2015 19:38:14 +0000 (14:38 -0500)]
Remove some debugging code that was accidentally committed.
Ben Darnell [Sat, 28 Feb 2015 19:47:23 +0000 (14:47 -0500)]
Merge pull request #1356 from ajdavis/semaphore-memleak
Fix memory leak in Semaphore.
Ben Darnell [Sat, 28 Feb 2015 19:47:02 +0000 (14:47 -0500)]
Merge pull request #1353 from ajdavis/lock
Add tornado.locks.Lock.
A. Jesse Jiryu Davis [Sat, 28 Feb 2015 18:44:27 +0000 (13:44 -0500)]
Fix memory leak in Semaphore.
A. Jesse Jiryu Davis [Sat, 28 Feb 2015 18:40:32 +0000 (13:40 -0500)]
Restore LockTests.test_acquire_fifo.
A. Jesse Jiryu Davis [Sat, 28 Feb 2015 18:35:36 +0000 (13:35 -0500)]
Don't promise that coroutines waiting for a Lock are FIFO.
Ben Darnell [Sat, 28 Feb 2015 18:08:52 +0000 (13:08 -0500)]
Merge pull request #1355 from ajdavis/locks-repr
Define Condition's and Event's repr, not str.
Ben Darnell [Sat, 28 Feb 2015 17:55:09 +0000 (12:55 -0500)]
Merge pull request #1354 from ajdavis/bounded-semaphore-release-docstring
Add docstring to BoundedSemaphore.release.
A. Jesse Jiryu Davis [Sat, 28 Feb 2015 17:19:18 +0000 (12:19 -0500)]
Define Condition's and Event's repr, not str.
Consistent with asyncio's Condition and Event.
A. Jesse Jiryu Davis [Sat, 28 Feb 2015 17:14:29 +0000 (12:14 -0500)]
Add docstring to BoundedSemaphore.release.
A. Jesse Jiryu Davis [Sat, 28 Feb 2015 17:08:46 +0000 (12:08 -0500)]
Add tornado.locks.Lock.
Ben Darnell [Fri, 27 Feb 2015 03:50:03 +0000 (22:50 -0500)]
Merge pull request #1352 from ajdavis/bounded-semaphore
Add tornado.locks.BoundedSemaphore.
A. Jesse Jiryu Davis [Fri, 27 Feb 2015 03:11:00 +0000 (22:11 -0500)]
Add tornado.locks.BoundedSemaphore.
Ben Darnell [Thu, 26 Feb 2015 03:16:52 +0000 (22:16 -0500)]
Merge pull request #1346 from ajdavis/semaphore
Add tornado.locks.Semaphore.
A. Jesse Jiryu Davis [Wed, 25 Feb 2015 20:59:04 +0000 (15:59 -0500)]
More tests of Semaphore, timeout, and with-statement.
A. Jesse Jiryu Davis [Wed, 25 Feb 2015 20:54:46 +0000 (15:54 -0500)]
Remove Semaphore.io_loop.
A. Jesse Jiryu Davis [Wed, 25 Feb 2015 20:54:06 +0000 (15:54 -0500)]
Remove public APIs Semaphore.counter and locked().
A. Jesse Jiryu Davis [Wed, 25 Feb 2015 20:52:55 +0000 (15:52 -0500)]
Simpler code for Semaphore.acquire() as a context manager.
Ben Darnell [Wed, 25 Feb 2015 00:39:53 +0000 (19:39 -0500)]
Merge pull request #1349 from st4lk/pgettext_ns
Add pgettext to default template namespace
st4lk [Tue, 24 Feb 2015 10:48:10 +0000 (13:48 +0300)]
don't show pgettext en language warning
st4lk [Tue, 24 Feb 2015 10:45:25 +0000 (13:45 +0300)]
add pgettext to default template namespace
Ben Darnell [Mon, 23 Feb 2015 15:49:23 +0000 (10:49 -0500)]
Merge pull request #1348 from st4lk/locale_doc_fix
Fix doc typos (pgettext)
st4lk [Mon, 23 Feb 2015 09:16:02 +0000 (12:16 +0300)]
Fix doc typos (pgettext)
Ben Darnell [Sun, 22 Feb 2015 00:46:44 +0000 (19:46 -0500)]
Merge pull request #1317 from st4lk/locale_context
Locale context (pgettext support)
Ben Darnell [Sat, 21 Feb 2015 22:55:29 +0000 (17:55 -0500)]
Expand PeriodicCallback docs and testing.
Fixes #1345.
Ben Darnell [Fri, 20 Feb 2015 04:08:25 +0000 (23:08 -0500)]
Merge pull request #1344 from ajdavis/event-cleanups
Event cleanups.
A. Jesse Jiryu Davis [Fri, 20 Feb 2015 03:43:50 +0000 (22:43 -0500)]
Be explicit: Event.wait raises tornado.gen.TimeoutError.
A. Jesse Jiryu Davis [Fri, 20 Feb 2015 03:32:36 +0000 (22:32 -0500)]
Add tornado.locks.Semaphore.
A. Jesse Jiryu Davis [Fri, 20 Feb 2015 03:04:49 +0000 (22:04 -0500)]
Rename TestEvent to EventTest.
A. Jesse Jiryu Davis [Fri, 20 Feb 2015 03:03:19 +0000 (22:03 -0500)]
Simpler markup in Event.wait docstring.
Ben Darnell [Fri, 20 Feb 2015 00:41:50 +0000 (19:41 -0500)]
Merge pull request #1343 from browning/httpclient-exception-typo
Fix simple typo in httpclient exception message
Brian Browning [Fri, 20 Feb 2015 00:17:46 +0000 (16:17 -0800)]
Fix simple typo in httpclient exception message
Unelss should be unless
Ben Darnell [Wed, 18 Feb 2015 22:18:22 +0000 (17:18 -0500)]
Remove long-forgotten (and overly pessimistic) README.
Ben Darnell [Wed, 18 Feb 2015 22:17:26 +0000 (17:17 -0500)]
Fix web_test for python 3.5a1.
Compare strings case-insensitively since the behavior of the
cookie library has changed.
Ben Darnell [Wed, 18 Feb 2015 22:12:13 +0000 (17:12 -0500)]
Fix SSLIOStream in Python 3.5a1.
The behavior of SSLSocket.send() with an unwriteable socket
has changed: http://bugs.python.org/issue20951
Ben Darnell [Wed, 18 Feb 2015 14:54:44 +0000 (09:54 -0500)]
Merge pull request #1341 from ajdavis/event
Add tornado.locks.Event.
A. Jesse Jiryu Davis [Wed, 18 Feb 2015 13:57:09 +0000 (08:57 -0500)]
Import unittest2 in locks_test if needed.
A. Jesse Jiryu Davis [Wed, 18 Feb 2015 13:56:52 +0000 (08:56 -0500)]
Fix multiple calls to Event.clear.
Ben Darnell [Wed, 18 Feb 2015 03:33:36 +0000 (22:33 -0500)]
Make "certifi" optional on py34.
Ben Darnell [Wed, 18 Feb 2015 03:16:19 +0000 (22:16 -0500)]
Start next-release notes
Ben Darnell [Wed, 18 Feb 2015 01:35:19 +0000 (20:35 -0500)]
Bind options argument in define_logging_options.
This allows it to be used with non-default options instances.
Fixes #1342.
A. Jesse Jiryu Davis [Tue, 17 Feb 2015 18:16:07 +0000 (13:16 -0500)]
Combine lock tests into locks_test.py
A. Jesse Jiryu Davis [Tue, 17 Feb 2015 18:09:09 +0000 (13:09 -0500)]
Event.wait raises TimeoutError instead of returning False.
A. Jesse Jiryu Davis [Tue, 17 Feb 2015 18:05:33 +0000 (13:05 -0500)]
Event.io_loop is unused.
A. Jesse Jiryu Davis [Mon, 16 Feb 2015 01:20:18 +0000 (20:20 -0500)]
Add tornado.locks.Event.
Copied from Toro with small improvements.
A. Jesse Jiryu Davis [Mon, 16 Feb 2015 00:16:11 +0000 (19:16 -0500)]
Unused imports in locks.py.
Ben Darnell [Mon, 16 Feb 2015 00:02:11 +0000 (19:02 -0500)]
Fix docs and relax a test.
Ben Darnell [Sun, 15 Feb 2015 23:35:07 +0000 (18:35 -0500)]
Disable SSL compression on py32-33.
This passes howsmyssl.com for python 2.7.9 and above; the older
versions are fairly hopeless.
Ben Darnell [Sun, 15 Feb 2015 23:29:52 +0000 (18:29 -0500)]
Fix tests on py26
Ben Darnell [Sun, 15 Feb 2015 23:23:19 +0000 (18:23 -0500)]
Reuse a global SSLContext by default in simple_httpclient
Ben Darnell [Sun, 15 Feb 2015 23:06:07 +0000 (18:06 -0500)]
Document that allow_ipv6 is now true in simple_httpclient.
Ben Darnell [Sun, 15 Feb 2015 23:04:52 +0000 (18:04 -0500)]
Add ssl_options argument for simple_httpclient.
Ben Darnell [Sun, 15 Feb 2015 22:40:40 +0000 (17:40 -0500)]
Validate SSL certs by default at the IOStream level.
Use the system certificates instead of certifi when available.
Note that this does not change the behavior of simple_httpclient,
which always uses certifi but will be changing in a future commit.
Ben Darnell [Sun, 15 Feb 2015 17:12:25 +0000 (12:12 -0500)]
Update ssl_options docs to use SSLContext.
Now that Python 2 has a modern SSL package, SSLContext can
be presented as the default instead of the dictionary of
options.
Fixes #1322.
Ben Darnell [Sun, 15 Feb 2015 16:40:46 +0000 (11:40 -0500)]
Document the limitations of read_until_close(streaming_callback=).
As noted in #1334 and #1339.
Ben Darnell [Sun, 15 Feb 2015 15:57:12 +0000 (10:57 -0500)]
Merge pull request #1340 from jonashagstedt/master
_on_close_called is set to True (was always False)
Ben Darnell [Sun, 15 Feb 2015 15:56:15 +0000 (10:56 -0500)]
Merge pull request #1338 from ajdavis/condition-squashed
Add tornado.locks.Condition.
Jonas Hagstedt [Sun, 15 Feb 2015 00:56:31 +0000 (01:56 +0100)]
_on_close_called is set to True (was always False)
A. Jesse Jiryu Davis [Sat, 14 Feb 2015 19:30:48 +0000 (14:30 -0500)]
Add tornado.locks.Condition.
Copied from Toro with small improvements.
Ben Darnell [Thu, 12 Feb 2015 23:15:38 +0000 (18:15 -0500)]
Increase the timeout on a test that's failing on travis-ci.
It is inexplicably failing on py27 DEPS=false while passing in other
configurations.
Ben Darnell [Thu, 12 Feb 2015 23:06:51 +0000 (18:06 -0500)]
Merge pull request #1333 from carlsverre/master
Coroutine exception __context__ leak in python 3
Ben Darnell [Thu, 12 Feb 2015 22:05:48 +0000 (17:05 -0500)]
Merge pull request #1336 from grafuls/master
flake8 cleanup
Carl Sverre [Thu, 12 Feb 2015 04:00:02 +0000 (20:00 -0800)]
Coroutine exception __context__ leak in python 3
In Python 3 every exception has an auto-attached __context__ exception if it was
raised while an existing exception was being handled. This is often a very
useful property and allows users to see the underlying cause of many problems.
However, when dealing with async code via coroutines this feature can suddenly
become a pretty big issue. Namely, if you generator.throw back into a coroutine
to raise an exception in the correct scope, and that coroutine raises an
exception at a later time you can have nested exceptions which shouldn't
logically be nested.
This patch resolves this issue in the coroutine code by moving the gen.throw
outside of the exception handler. By doing this the user-code scope is able to
later raise exceptions without worrying about inheriting prior exception
context.
Gonzalo Rafuls [Thu, 12 Feb 2015 17:18:43 +0000 (18:18 +0100)]
flake8 cleanup
Ben Darnell [Thu, 12 Feb 2015 16:13:14 +0000 (11:13 -0500)]
Merge pull request #1335 from grafuls/master
Added logging for debugging and fixes for flake8
Gonzalo Rafuls [Thu, 12 Feb 2015 15:53:43 +0000 (16:53 +0100)]
merge
Gonzalo Rafuls [Thu, 12 Feb 2015 13:24:52 +0000 (14:24 +0100)]
Added logging for debugging and fixes for flake8
Gonzalo Rafuls [Thu, 12 Feb 2015 13:24:52 +0000 (14:24 +0100)]
Added logging for debugging and fixes for flake8
Ben Darnell [Wed, 11 Feb 2015 03:23:30 +0000 (22:23 -0500)]
Merge pull request #1290 from nosyjoe/branch4.0-mrbeam
Avoid busy waiting in ioloop when system time is skipped forward
Philipp Engel [Tue, 16 Dec 2014 14:43:06 +0000 (15:43 +0100)]
modified method _schedule_next of PeriodicCallback to handle sudden changes of the system time differently:
* calculating next timeout value directly while advancing by a multiple of callback_time
* when the system time changes, jumps into the future make the _schedule_next method do a busy wait.
* on slow machines (RPi), jumps of a few months into the future can block the loop for a few minutes
=> added a check for big differences in current system time and the current value of the next scheduled timeout
On a first boot of an older RPi image, tornado sometime starts before the date&time were updated through NTP, hence blocking the ioloop for several minutes.
Ben Darnell [Mon, 9 Feb 2015 05:22:28 +0000 (00:22 -0500)]
Enable sphinx doctests on travis-ci
Ben Darnell [Mon, 9 Feb 2015 05:19:47 +0000 (00:19 -0500)]
Make many doc code blocks into sphinx doctests.
Ben Darnell [Sun, 8 Feb 2015 21:09:00 +0000 (16:09 -0500)]
Enable the sphinx doctest extension.
Ben Darnell [Sun, 8 Feb 2015 20:02:49 +0000 (15:02 -0500)]
More flake8 cleanup.
The only remaining flake8 errors are for line length.