]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
10 years agoFix memory leak in Semaphore. 1356/head
A. Jesse Jiryu Davis [Sat, 28 Feb 2015 18:44:27 +0000 (13:44 -0500)] 
Fix memory leak in Semaphore.

10 years agoMerge pull request #1352 from ajdavis/bounded-semaphore
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.

10 years agoAdd tornado.locks.BoundedSemaphore. 1352/head
A. Jesse Jiryu Davis [Fri, 27 Feb 2015 03:11:00 +0000 (22:11 -0500)] 
Add tornado.locks.BoundedSemaphore.

10 years agoMerge pull request #1346 from ajdavis/semaphore
Ben Darnell [Thu, 26 Feb 2015 03:16:52 +0000 (22:16 -0500)] 
Merge pull request #1346 from ajdavis/semaphore

Add tornado.locks.Semaphore.

10 years agoMore tests of Semaphore, timeout, and with-statement. 1346/head
A. Jesse Jiryu Davis [Wed, 25 Feb 2015 20:59:04 +0000 (15:59 -0500)] 
More tests of Semaphore, timeout, and with-statement.

10 years agoRemove Semaphore.io_loop.
A. Jesse Jiryu Davis [Wed, 25 Feb 2015 20:54:46 +0000 (15:54 -0500)] 
Remove Semaphore.io_loop.

10 years agoRemove public APIs Semaphore.counter and locked().
A. Jesse Jiryu Davis [Wed, 25 Feb 2015 20:54:06 +0000 (15:54 -0500)] 
Remove public APIs Semaphore.counter and locked().

10 years agoSimpler code for Semaphore.acquire() as a context manager.
A. Jesse Jiryu Davis [Wed, 25 Feb 2015 20:52:55 +0000 (15:52 -0500)] 
Simpler code for Semaphore.acquire() as a context manager.

10 years agoMerge pull request #1349 from st4lk/pgettext_ns
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

10 years agodon't show pgettext en language warning 1349/head
st4lk [Tue, 24 Feb 2015 10:48:10 +0000 (13:48 +0300)] 
don't show pgettext en language warning

10 years agoadd pgettext to default template namespace
st4lk [Tue, 24 Feb 2015 10:45:25 +0000 (13:45 +0300)] 
add pgettext to default template namespace

10 years agoMerge pull request #1348 from st4lk/locale_doc_fix
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)

10 years agoFix doc typos (pgettext) 1348/head
st4lk [Mon, 23 Feb 2015 09:16:02 +0000 (12:16 +0300)] 
Fix doc typos (pgettext)

10 years agoMerge pull request #1317 from st4lk/locale_context 1347/head
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)

10 years agoExpand PeriodicCallback docs and testing.
Ben Darnell [Sat, 21 Feb 2015 22:55:29 +0000 (17:55 -0500)] 
Expand PeriodicCallback docs and testing.

Fixes #1345.

10 years agoMerge pull request #1344 from ajdavis/event-cleanups
Ben Darnell [Fri, 20 Feb 2015 04:08:25 +0000 (23:08 -0500)] 
Merge pull request #1344 from ajdavis/event-cleanups

Event cleanups.

10 years agoBe explicit: Event.wait raises tornado.gen.TimeoutError. 1344/head
A. Jesse Jiryu Davis [Fri, 20 Feb 2015 03:43:50 +0000 (22:43 -0500)] 
Be explicit: Event.wait raises tornado.gen.TimeoutError.

10 years agoAdd tornado.locks.Semaphore.
A. Jesse Jiryu Davis [Fri, 20 Feb 2015 03:32:36 +0000 (22:32 -0500)] 
Add tornado.locks.Semaphore.

10 years agoRename TestEvent to EventTest.
A. Jesse Jiryu Davis [Fri, 20 Feb 2015 03:04:49 +0000 (22:04 -0500)] 
Rename TestEvent to EventTest.

10 years agoSimpler markup in Event.wait docstring.
A. Jesse Jiryu Davis [Fri, 20 Feb 2015 03:03:19 +0000 (22:03 -0500)] 
Simpler markup in Event.wait docstring.

10 years agoMerge pull request #1343 from browning/httpclient-exception-typo
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

10 years agoFix simple typo in httpclient exception message 1343/head
Brian Browning [Fri, 20 Feb 2015 00:17:46 +0000 (16:17 -0800)] 
Fix simple typo in httpclient exception message

Unelss should be unless

10 years agoRemove long-forgotten (and overly pessimistic) README.
Ben Darnell [Wed, 18 Feb 2015 22:18:22 +0000 (17:18 -0500)] 
Remove long-forgotten (and overly pessimistic) README.

10 years agoFix web_test for python 3.5a1.
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.

10 years agoFix SSLIOStream in Python 3.5a1.
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

10 years agoMerge pull request #1341 from ajdavis/event
Ben Darnell [Wed, 18 Feb 2015 14:54:44 +0000 (09:54 -0500)] 
Merge pull request #1341 from ajdavis/event

Add tornado.locks.Event.

10 years agoImport unittest2 in locks_test if needed. 1341/head
A. Jesse Jiryu Davis [Wed, 18 Feb 2015 13:57:09 +0000 (08:57 -0500)] 
Import unittest2 in locks_test if needed.

10 years agoFix multiple calls to Event.clear.
A. Jesse Jiryu Davis [Wed, 18 Feb 2015 13:56:52 +0000 (08:56 -0500)] 
Fix multiple calls to Event.clear.

10 years agoMake "certifi" optional on py34.
Ben Darnell [Wed, 18 Feb 2015 03:33:36 +0000 (22:33 -0500)] 
Make "certifi" optional on py34.

10 years agoStart next-release notes
Ben Darnell [Wed, 18 Feb 2015 03:16:19 +0000 (22:16 -0500)] 
Start next-release notes

10 years agoBind options argument in define_logging_options.
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.

10 years agoCombine lock tests into locks_test.py
A. Jesse Jiryu Davis [Tue, 17 Feb 2015 18:16:07 +0000 (13:16 -0500)] 
Combine lock tests into locks_test.py

10 years agoEvent.wait raises TimeoutError instead of returning False.
A. Jesse Jiryu Davis [Tue, 17 Feb 2015 18:09:09 +0000 (13:09 -0500)] 
Event.wait raises TimeoutError instead of returning False.

10 years agoEvent.io_loop is unused.
A. Jesse Jiryu Davis [Tue, 17 Feb 2015 18:05:33 +0000 (13:05 -0500)] 
Event.io_loop is unused.

10 years agoAdd tornado.locks.Event.
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.

10 years agoUnused imports in locks.py.
A. Jesse Jiryu Davis [Mon, 16 Feb 2015 00:16:11 +0000 (19:16 -0500)] 
Unused imports in locks.py.

10 years agoFix docs and relax a test.
Ben Darnell [Mon, 16 Feb 2015 00:02:11 +0000 (19:02 -0500)] 
Fix docs and relax a test.

10 years agoDisable SSL compression on py32-33.
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.

10 years agoFix tests on py26
Ben Darnell [Sun, 15 Feb 2015 23:29:52 +0000 (18:29 -0500)] 
Fix tests on py26

10 years agoReuse a global SSLContext by default in simple_httpclient
Ben Darnell [Sun, 15 Feb 2015 23:23:19 +0000 (18:23 -0500)] 
Reuse a global SSLContext by default in simple_httpclient

10 years agoDocument that allow_ipv6 is now true 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.

10 years agoAdd ssl_options argument for simple_httpclient.
Ben Darnell [Sun, 15 Feb 2015 23:04:52 +0000 (18:04 -0500)] 
Add ssl_options argument for simple_httpclient.

10 years agoValidate SSL certs by default at the IOStream level.
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.

10 years agoUpdate ssl_options docs to use SSLContext.
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.

10 years agoDocument the limitations of read_until_close(streaming_callback=).
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.

10 years agoMerge pull request #1340 from jonashagstedt/master
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)

10 years agoMerge pull request #1338 from ajdavis/condition-squashed
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.

10 years ago_on_close_called is set to True (was always False) 1340/head
Jonas Hagstedt [Sun, 15 Feb 2015 00:56:31 +0000 (01:56 +0100)] 
_on_close_called is set to True (was always False)

10 years agoAdd tornado.locks.Condition. 1338/head
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.

10 years agoIncrease the timeout on a test that's failing on travis-ci.
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.

10 years agoMerge pull request #1333 from carlsverre/master
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

10 years agoMerge pull request #1336 from grafuls/master
Ben Darnell [Thu, 12 Feb 2015 22:05:48 +0000 (17:05 -0500)] 
Merge pull request #1336 from grafuls/master

flake8 cleanup

10 years agoCoroutine exception __context__ leak in python 3 1333/head
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.

10 years agoflake8 cleanup 1336/head
Gonzalo Rafuls [Thu, 12 Feb 2015 17:18:43 +0000 (18:18 +0100)] 
flake8 cleanup

10 years agoMerge pull request #1335 from grafuls/master
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

10 years agomerge 1335/head
Gonzalo Rafuls [Thu, 12 Feb 2015 15:53:43 +0000 (16:53 +0100)] 
merge

10 years agoAdded 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

10 years agoAdded 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

10 years agoMerge pull request #1290 from nosyjoe/branch4.0-mrbeam
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

10 years agomodified method _schedule_next of PeriodicCallback to handle sudden changes of the... 1290/head
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.

10 years agoEnable sphinx doctests on travis-ci
Ben Darnell [Mon, 9 Feb 2015 05:22:28 +0000 (00:22 -0500)] 
Enable sphinx doctests on travis-ci

10 years agoMake many doc code blocks into sphinx doctests.
Ben Darnell [Mon, 9 Feb 2015 05:19:47 +0000 (00:19 -0500)] 
Make many doc code blocks into sphinx doctests.

10 years agoEnable the sphinx doctest extension.
Ben Darnell [Sun, 8 Feb 2015 21:09:00 +0000 (16:09 -0500)] 
Enable the sphinx doctest extension.

10 years agoMore flake8 cleanup.
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.

10 years agoRun autopep8
Ben Darnell [Sun, 8 Feb 2015 19:40:04 +0000 (14:40 -0500)] 
Run autopep8

10 years agoUpdate requirement versions; add flake8 and twine
Ben Darnell [Sun, 8 Feb 2015 18:55:02 +0000 (13:55 -0500)] 
Update requirement versions; add flake8 and twine

10 years agoAllow unicode strings in import_object in python 2.
Ben Darnell [Sun, 8 Feb 2015 18:26:56 +0000 (13:26 -0500)] 
Allow unicode strings in import_object in python 2.

Fixes #1316.

10 years agoMerge pull request #1327 from josephok/master
Ben Darnell [Sat, 7 Feb 2015 18:19:37 +0000 (13:19 -0500)] 
Merge pull request #1327 from josephok/master

some modifications in demos/benchmark so it can run both in py2 and py3

10 years agoMerge pull request #1325 from ccampbell/master
Ben Darnell [Sat, 7 Feb 2015 18:18:08 +0000 (13:18 -0500)] 
Merge pull request #1325 from ccampbell/master

Skip falsy values for some SimpleCookie flags

10 years agoBump master branch version number
Ben Darnell [Sat, 7 Feb 2015 18:15:19 +0000 (13:15 -0500)] 
Bump master branch version number

10 years agoSet version number to 4.1 v4.1.0
Ben Darnell [Sat, 7 Feb 2015 17:47:11 +0000 (12:47 -0500)] 
Set version number to 4.1

10 years agoFinalize 4.1 release notes.
Ben Darnell [Sat, 7 Feb 2015 17:46:33 +0000 (12:46 -0500)] 
Finalize 4.1 release notes.

10 years agosome modifications in demos/benchmark so it can run both in py2 and py3 1327/head
Joseph [Fri, 6 Feb 2015 02:29:13 +0000 (10:29 +0800)] 
some modifications in demos/benchmark so it can run both in py2 and py3

10 years agoAdd unit tests for new cookie behavior 1325/head
Craig Campbell [Tue, 3 Feb 2015 21:05:48 +0000 (16:05 -0500)] 
Add unit tests for new cookie behavior

10 years agoSkip falsy values for SimpleCookie flags
Craig Campbell [Tue, 3 Feb 2015 21:05:01 +0000 (16:05 -0500)] 
Skip falsy values for SimpleCookie flags

Fixes #1324

10 years agoSet version number to 4.1b2 v4.1.0b2
Ben Darnell [Sun, 1 Feb 2015 19:27:54 +0000 (14:27 -0500)] 
Set version number to 4.1b2

10 years agoUpdate docs for UIModule.
Ben Darnell [Sun, 1 Feb 2015 19:17:25 +0000 (14:17 -0500)] 
Update docs for UIModule.

10 years agoUse self.io_loop in with_timeout tests.
A. Jesse Jiryu Davis [Fri, 30 Jan 2015 20:08:08 +0000 (15:08 -0500)] 
Use self.io_loop in with_timeout tests.

10 years agoSilence a warning on freebsd.
Ben Darnell [Sun, 1 Feb 2015 15:52:30 +0000 (10:52 -0500)] 
Silence a warning on freebsd.

This was already changed for other platforms but the error behaves
a bit differently on freebsd.

10 years agoMerge branch 'master' of github.com:tornadoweb/tornado
Ben Darnell [Sun, 1 Feb 2015 04:00:20 +0000 (23:00 -0500)] 
Merge branch 'master' of github.com:tornadoweb/tornado

10 years agoDisable twisted_web tests on python 3.
Ben Darnell [Sun, 1 Feb 2015 03:52:07 +0000 (22:52 -0500)] 
Disable twisted_web tests on python 3.

The twisted.web modules are importable as of Twisted 15.0.0,
but appear to still have internal str/bytes issues.

10 years agoMerge pull request #1319 from hfaran/patch-1
Ben Darnell [Fri, 30 Jan 2015 17:15:17 +0000 (12:15 -0500)] 
Merge pull request #1319 from hfaran/patch-1

Add syntax highlighting to Hello World example

10 years agoFix a DeprecationWarning in twisted_test with Twisted 15.0.
Ben Darnell [Fri, 30 Jan 2015 16:49:34 +0000 (11:49 -0500)] 
Fix a DeprecationWarning in twisted_test with Twisted 15.0.

10 years agoAdd syntax highlighting to Hello World example 1319/head
Hamza Faran [Fri, 30 Jan 2015 10:47:16 +0000 (02:47 -0800)] 
Add syntax highlighting to Hello World example

10 years agomerge pgettext and npgettext into one pgettext 1317/head
st4lk [Tue, 27 Jan 2015 12:40:14 +0000 (15:40 +0300)] 
merge pgettext and npgettext into one pgettext

10 years agoadd pgettext, npgettext docstrings
st4lk [Tue, 27 Jan 2015 12:05:01 +0000 (15:05 +0300)] 
add pgettext, npgettext docstrings

10 years agoadd pgettext, npgettext
st4lk [Tue, 27 Jan 2015 11:45:13 +0000 (14:45 +0300)] 
add pgettext, npgettext

10 years agoMerge branch 'stable'
Ben Darnell [Sun, 25 Jan 2015 15:44:11 +0000 (10:44 -0500)] 
Merge branch 'stable'

10 years agoMerge pull request #1312 from FreeAquar/patch-1
Ben Darnell [Sun, 25 Jan 2015 15:35:59 +0000 (10:35 -0500)] 
Merge pull request #1312 from FreeAquar/patch-1

a wrong describle

10 years agoa wrong describle 1312/head
FreeAquar [Sun, 25 Jan 2015 09:01:47 +0000 (17:01 +0800)] 
a wrong describle

10 years agoReplace most testing uses of 'localhost' with '127.0.0.1'.
Ben Darnell [Sun, 25 Jan 2015 00:50:04 +0000 (19:50 -0500)] 
Replace most testing uses of 'localhost' with '127.0.0.1'.

This may work around a suspected ipv6-related issue on travis.

10 years agoInclude the ability to yield asyncio and twisted objects in highlights
Ben Darnell [Sun, 25 Jan 2015 00:21:34 +0000 (19:21 -0500)] 
Include the ability to yield asyncio and twisted objects in highlights

10 years agoSet version number to 4.1b1 v4.1.0b1
Ben Darnell [Sun, 25 Jan 2015 00:12:08 +0000 (19:12 -0500)] 
Set version number to 4.1b1

10 years agoFix doc coverage for WaitIterator.
Ben Darnell [Sat, 24 Jan 2015 23:38:18 +0000 (18:38 -0500)] 
Fix doc coverage for WaitIterator.

10 years agoClean up release notes
Ben Darnell [Sat, 24 Jan 2015 23:35:18 +0000 (18:35 -0500)] 
Clean up release notes

10 years agoUpdate release notes and docs.
Ben Darnell [Sat, 24 Jan 2015 23:18:09 +0000 (18:18 -0500)] 
Update release notes and docs.

10 years agoMerge remote-tracking branch 'Caligatio/ws_message_callback'
Ben Darnell [Sat, 24 Jan 2015 22:29:03 +0000 (17:29 -0500)] 
Merge remote-tracking branch 'Caligatio/ws_message_callback'

Conflicts:
tornado/websocket.py

10 years agoGive curl_httpclient its own logger for its verbose debug output.
Ben Darnell [Sat, 24 Jan 2015 22:14:20 +0000 (17:14 -0500)] 
Give curl_httpclient its own logger for its verbose debug output.

This makes it easier to filter it separately.

This commit is an updated recreation of
https://github.com/SuminAndrew/tornado/commit/88809314e853fb69610cf44095612e78b0882c3e
to account for code movement.

Closes #1093.

10 years agoMerge pull request #1286 from vovanec/patch-1
Ben Darnell [Sat, 24 Jan 2015 22:06:34 +0000 (17:06 -0500)] 
Merge pull request #1286 from vovanec/patch-1

Added support for custom web socket protocols.

10 years agoIntroduce gen.sleep().
Ben Darnell [Mon, 19 Jan 2015 20:38:59 +0000 (15:38 -0500)] 
Introduce gen.sleep().

Closes #1146.