]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
11 years agoCatch `binascii.a2b_hex` errors on Python 3 1097/head
William Tisäter [Tue, 8 Jul 2014 13:52:25 +0000 (15:52 +0200)] 
Catch `binascii.a2b_hex` errors on Python 3

11 years agoDon't raise when failing to hex decode XSRF v1
William Tisäter [Tue, 8 Jul 2014 07:07:48 +0000 (09:07 +0200)] 
Don't raise when failing to hex decode XSRF v1

11 years agoTurn short and hex XSRF tests into success tests
William Tisäter [Tue, 8 Jul 2014 07:07:18 +0000 (09:07 +0200)] 
Turn short and hex XSRF tests into success tests

11 years agoRemove length requirement from v1 XSRF tokens
William Tisäter [Mon, 7 Jul 2014 21:29:44 +0000 (23:29 +0200)] 
Remove length requirement from v1 XSRF tokens

11 years agoSet version number to 3.2.2 branch3.2 v3.2.2
Ben Darnell [Wed, 4 Jun 2014 03:30:18 +0000 (23:30 -0400)] 
Set version number to 3.2.2

11 years agoDocs for xsrf cookie change; 3.2.2 release notes.
Ben Darnell [Wed, 4 Jun 2014 03:16:00 +0000 (23:16 -0400)] 
Docs for xsrf cookie change; 3.2.2 release notes.

11 years agoAdd the option to request an older xsrf cookie version.
Ben Darnell [Tue, 27 May 2014 01:18:36 +0000 (21:18 -0400)] 
Add the option to request an older xsrf cookie version.

Fix an issue with v1 cookies on py32.

11 years agoChange the xsrf cookie format to be masked with a random salt.
Ben Darnell [Mon, 26 May 2014 19:44:58 +0000 (15:44 -0400)] 
Change the xsrf cookie format to be masked with a random salt.

This protects against the BREACH attack.

11 years agoSmall security improvements to xsrf tokens; add tests.
Ben Darnell [Mon, 26 May 2014 17:33:21 +0000 (13:33 -0400)] 
Small security improvements to xsrf tokens; add tests.

Use os.urandom(16) instead of uuid.uuid4(), to reclaim a few bits of
entropy.  Use _time_independent_equals for comparison.

11 years agoFix imports for the new version of trollius, which changed its package name.
Ben Darnell [Tue, 27 May 2014 00:41:52 +0000 (20:41 -0400)] 
Fix imports for the new version of trollius, which changed its package name.

11 years agoUpdate links to github repo; add announcement mailing list.
Ben Darnell [Wed, 14 May 2014 00:51:23 +0000 (20:51 -0400)] 
Update links to github repo; add announcement mailing list.

11 years agoGive credit to Joost Pol for reporting the security issue.
Ben Darnell [Tue, 6 May 2014 02:44:01 +0000 (22:44 -0400)] 
Give credit to Joost Pol for reporting the security issue.

11 years agoSet version number to 3.2.1 v3.2.1
Ben Darnell [Tue, 6 May 2014 02:28:23 +0000 (22:28 -0400)] 
Set version number to 3.2.1

11 years agov3.2.1 release notes
Ben Darnell [Tue, 6 May 2014 02:27:20 +0000 (22:27 -0400)] 
v3.2.1 release notes

11 years agoDocument the cookie versioning interface.
Ben Darnell [Tue, 6 May 2014 01:58:22 +0000 (21:58 -0400)] 
Document the cookie versioning interface.

11 years agoAdd a v2 secure cookie format.
Ben Darnell [Mon, 5 May 2014 02:59:12 +0000 (22:59 -0400)] 
Add a v2 secure cookie format.

This format fixes some weaknesses in the original format that would allow
characters to be shifted from the "value" field to the "name" or "timestamp"
fields.  It also upgrades the signature from HMAC-SHA1 to HMAC-SHA256,
adds an explicit version field, and adds an as-yet-unused field to
support key rotation in the future.

11 years agoAdd versioning parameters to secure_cookie/signed_value APIs.
Ben Darnell [Mon, 5 May 2014 00:03:09 +0000 (20:03 -0400)] 
Add versioning parameters to secure_cookie/signed_value APIs.

11 years agoMerge branch 'stable' into branch3.2
Ben Darnell [Tue, 6 May 2014 01:30:33 +0000 (21:30 -0400)] 
Merge branch 'stable' into branch3.2

11 years agoAdd SystemError to errors from compilation
Matthew Brett [Tue, 8 Apr 2014 18:23:21 +0000 (11:23 -0700)] 
Add SystemError to errors from compilation

OSX generates a SystemError from a missing compiler; trap with other
compilation errors.

11 years agoMerge pull request #1037 from toanant/patch-1
Ben Darnell [Wed, 16 Apr 2014 13:27:13 +0000 (09:27 -0400)] 
Merge pull request #1037 from toanant/patch-1

Update overview.rst with typos in nginx conf.

11 years agoUpdate overview.rst with typos in nginx conf. 1037/head
Abhishek Kumar Singh [Wed, 16 Apr 2014 09:06:33 +0000 (14:36 +0530)] 
Update overview.rst with typos in nginx conf.

Minor correction in the production nginx server conf with proxy_redirect as off; previously it was false.

11 years agoDon't require the extension to be present when building docs.
Ben Darnell [Fri, 17 Jan 2014 04:12:42 +0000 (23:12 -0500)] 
Don't require the extension to be present when building docs.

11 years agoReinstate the 'cd maint' in .travis.yml.
Ben Darnell [Fri, 17 Jan 2014 04:00:26 +0000 (23:00 -0500)] 
Reinstate the 'cd maint' in .travis.yml.

This turned out to be breaking the speedups module.

11 years agoAdd better debugging for ImportErrors resulting from TORNADO_EXTENSION=1
Ben Darnell [Fri, 17 Jan 2014 03:49:31 +0000 (22:49 -0500)] 
Add better debugging for ImportErrors resulting from TORNADO_EXTENSION=1

11 years agoAdd a new TORNADO_EXTENSION environment variable for testing purposes.
Ben Darnell [Fri, 17 Jan 2014 03:32:32 +0000 (22:32 -0500)] 
Add a new TORNADO_EXTENSION environment variable for testing purposes.

This variable can be set to 0 to suppress or 1 to require the use of the
extension (instead of the default to use it when it is available but silently
fall back).  Require the extension to be present on travis-ci.

11 years agoMerge pull request #973 from cgohlke/patch-1
bdarnell [Thu, 16 Jan 2014 02:10:51 +0000 (18:10 -0800)] 
Merge pull request #973 from cgohlke/patch-1

Fix msvc compile error and improve 64 bit compatibility

11 years agoFix msvc compile error and improve 64 bit compatibility 973/head
cgohlke [Wed, 15 Jan 2014 05:47:35 +0000 (21:47 -0800)] 
Fix msvc compile error and improve 64 bit compatibility

11 years agoUpdate README.rst to match docs/index.rst.
Ben Darnell [Tue, 14 Jan 2014 13:51:32 +0000 (08:51 -0500)] 
Update README.rst to match docs/index.rst.

11 years agoSet version number to 3.2. v3.2.0
Ben Darnell [Tue, 14 Jan 2014 13:41:27 +0000 (08:41 -0500)] 
Set version number to 3.2.

11 years agoFinalize 3.2 release notes
Ben Darnell [Tue, 14 Jan 2014 13:40:48 +0000 (08:40 -0500)] 
Finalize 3.2 release notes

11 years agoFix shell quoting in travis config.
Ben Darnell [Sat, 11 Jan 2014 04:31:29 +0000 (23:31 -0500)] 
Fix shell quoting in travis config.

11 years agoPin pycurl on travis to <7.19.3, removing it from py3.x.
Ben Darnell [Sat, 11 Jan 2014 04:27:33 +0000 (23:27 -0500)] 
Pin pycurl on travis to <7.19.3, removing it from py3.x.

SSL issues prevent pycurl 7.19.3 from being installed on travis.

11 years agoNow that pycurl 7.19.3 with py3 support is out, add it to tox/travis.
Ben Darnell [Sat, 11 Jan 2014 04:19:25 +0000 (23:19 -0500)] 
Now that pycurl 7.19.3 with py3 support is out, add it to tox/travis.

11 years agoAdd a link to the Stack Overflow 'tornado' tag from the docs.
Ben Darnell [Fri, 10 Jan 2014 01:15:41 +0000 (20:15 -0500)] 
Add a link to the Stack Overflow 'tornado' tag from the docs.

11 years agoReplace redundant dict.get() with [].
Ben Darnell [Fri, 10 Jan 2014 01:12:34 +0000 (20:12 -0500)] 
Replace redundant dict.get() with [].

11 years agoSet version number to 3.2b2 v3.2.0b2
Ben Darnell [Wed, 8 Jan 2014 03:01:38 +0000 (22:01 -0500)] 
Set version number to 3.2b2

11 years agoUpdate release notes for 3.2.0b2
Ben Darnell [Wed, 8 Jan 2014 03:00:53 +0000 (22:00 -0500)] 
Update release notes for 3.2.0b2

11 years agoAdd trollius (py2 backport of asyncio) to tox config.
Ben Darnell [Tue, 7 Jan 2014 06:14:37 +0000 (01:14 -0500)] 
Add trollius (py2 backport of asyncio) to tox config.

This passes the twisted integration tests but currently has some issues
with pycurl.

11 years agoRename "normal" to "end_color" in log format strings.
Ben Darnell [Tue, 7 Jan 2014 03:39:29 +0000 (22:39 -0500)] 
Rename "normal" to "end_color" in log format strings.

When not colorizing, use empty strings instead of two copies of "normal".

Update docs.

11 years agoImproved extensibility of LogFormatter
Andrea Ratto [Wed, 25 Dec 2013 01:02:31 +0000 (02:02 +0100)] 
Improved extensibility of LogFormatter

* refactored code separating coloring logic
* allow full line customization of the format
* possibly faster operation

11 years agoMove _setup_logging to BaseIOLoop and use it in asyncio and twisted implementations.
Ben Darnell [Mon, 6 Jan 2014 23:51:07 +0000 (18:51 -0500)] 
Move _setup_logging to BaseIOLoop and use it in asyncio and twisted implementations.

11 years agoRemove inaccurate IOLoop logging test cases.
Ben Darnell [Mon, 6 Jan 2014 23:49:33 +0000 (18:49 -0500)] 
Remove inaccurate IOLoop logging test cases.

11 years agoMerge commit 'c2a25a'
Ben Darnell [Mon, 6 Jan 2014 23:19:57 +0000 (18:19 -0500)] 
Merge commit 'c2a25a'

* commit 'c2a25a':
  Correct example variable, use consistant quoting

Closes #972

11 years agoMerge pull request #971 from gmr/logging-patch
bdarnell [Mon, 6 Jan 2014 23:08:18 +0000 (15:08 -0800)] 
Merge pull request #971 from gmr/logging-patch

Don't call logging.basicConfig if logging is already configured (#775). Replaces #887

11 years agoCorrect example variable, use consistant quoting
Gavin M. Roy [Mon, 6 Jan 2014 21:55:35 +0000 (16:55 -0500)] 
Correct example variable, use consistant quoting

11 years agoDon't call logging.basicConfig if logging is already configured (#775). 971/head
Gavin M. Roy [Mon, 6 Jan 2014 21:47:54 +0000 (16:47 -0500)] 
Don't call logging.basicConfig if logging is already configured (#775).
Will not call logging.basicConfig if there is a root logger,
tornado logger or tornado.application logger.

Updated patch to reflect comments about tests and method privacy.

11 years agoAdd a warning to the StaticFileHandler docs against overriding .get().
Ben Darnell [Sat, 4 Jan 2014 16:33:50 +0000 (11:33 -0500)] 
Add a warning to the StaticFileHandler docs against overriding .get().

11 years agoRemove redundant uses of @asynchronous with @gen.coroutine.
Ben Darnell [Fri, 3 Jan 2014 01:51:59 +0000 (20:51 -0500)] 
Remove redundant uses of @asynchronous with @gen.coroutine.

11 years agoDoc updates.
Ben Darnell [Tue, 31 Dec 2013 22:50:12 +0000 (17:50 -0500)] 
Doc updates.

* Version-added tags
* Add some missing methods
* Ignore asyncio module for coverage reports
* Work around a sphinx 1.2 regression

11 years agoUpdate future imports for recently added files.
Ben Darnell [Tue, 31 Dec 2013 18:47:28 +0000 (13:47 -0500)] 
Update future imports for recently added files.

(This is most meaningful for tornado.platform.asyncio, which needs
absolute imports for the python 2 backport of asyncio).

11 years agoAdd usage comement to run_fixers.py.
Ben Darnell [Tue, 31 Dec 2013 17:28:44 +0000 (12:28 -0500)] 
Add usage comement to run_fixers.py.

11 years agoMerge pull request #969 from ronnix/patch-1
bdarnell [Mon, 30 Dec 2013 22:18:58 +0000 (14:18 -0800)] 
Merge pull request #969 from ronnix/patch-1

Fix asyncio code example

11 years agoFix asyncio code example 969/head
Ronan Amicel [Mon, 30 Dec 2013 21:35:33 +0000 (22:35 +0100)] 
Fix asyncio code example

11 years agoSet version number to 3.2b1. v3.2.0b1
Ben Darnell [Mon, 30 Dec 2013 19:18:28 +0000 (14:18 -0500)] 
Set version number to 3.2b1.

11 years agoAdd python 3.4 tag to setup.py
Ben Darnell [Mon, 30 Dec 2013 19:17:57 +0000 (14:17 -0500)] 
Add python 3.4 tag to setup.py

11 years agoReorganize and expand next-release notes.
Ben Darnell [Mon, 30 Dec 2013 18:24:53 +0000 (13:24 -0500)] 
Reorganize and expand next-release notes.

11 years agoFix doc build on travis after removal of 'cd maint'
Ben Darnell [Mon, 30 Dec 2013 17:19:50 +0000 (12:19 -0500)] 
Fix doc build on travis after removal of 'cd maint'

11 years agoRemove 'cd maint' from travis script.
Ben Darnell [Mon, 30 Dec 2013 17:10:55 +0000 (12:10 -0500)] 
Remove 'cd maint' from travis script.

This was needed for 2to3, which we no longer use.  The changed
directory meant that coveralls wasn't seeing our .coveragerc.

11 years agoCorrectly skip coverage collection on 2.6.
Ben Darnell [Mon, 30 Dec 2013 16:58:31 +0000 (11:58 -0500)] 
Correctly skip coverage collection on 2.6.

11 years agoDisable coverage collection on python 2.6.
Ben Darnell [Mon, 30 Dec 2013 16:52:49 +0000 (11:52 -0500)] 
Disable coverage collection on python 2.6.

11 years agoAdd coveralls to travis config.
Ben Darnell [Mon, 30 Dec 2013 16:37:58 +0000 (11:37 -0500)] 
Add coveralls to travis config.

11 years agoDisable --pre flag in tox installs to fix environment recreation.
Ben Darnell [Mon, 30 Dec 2013 16:32:38 +0000 (11:32 -0500)] 
Disable --pre flag in tox installs to fix environment recreation.

Remove an old hack for monotime package.

11 years agoautopep8 whitespace fixes.
Ben Darnell [Mon, 30 Dec 2013 04:56:37 +0000 (23:56 -0500)] 
autopep8 whitespace fixes.

11 years agoUpdate run_autopep8.sh flags.
Ben Darnell [Mon, 30 Dec 2013 04:43:23 +0000 (23:43 -0500)] 
Update run_autopep8.sh flags.

11 years agoUpgrade maint/requirements.txt versions.
Ben Darnell [Mon, 30 Dec 2013 04:33:47 +0000 (23:33 -0500)] 
Upgrade maint/requirements.txt versions.

11 years agoDisallow ipv6 in curl-based tests.
Ben Darnell [Mon, 30 Dec 2013 01:41:17 +0000 (20:41 -0500)] 
Disallow ipv6 in curl-based tests.

The test servers only listen on ipv4, and it appears that libcurl 7.19.34
has regressed in its ability to handle the case when localhost resolves
to both v4 and v6 variants but only one works.

IPv6 was already disabled by default in simple_httpclient tests.

11 years agoUse a more reliable method to generate resolver errors.
Ben Darnell [Mon, 30 Dec 2013 00:45:34 +0000 (19:45 -0500)] 
Use a more reliable method to generate resolver errors.

On some platforms even getaddrinfo is fooled by the fake NXDOMAIN results.

11 years agoFixes for soon-to-be-released py3-compatible version of pycurl.
Ben Darnell [Sun, 29 Dec 2013 19:57:29 +0000 (14:57 -0500)] 
Fixes for soon-to-be-released py3-compatible version of pycurl.

11 years agoMark another timing-sensitive test as skipOnTravis.
Ben Darnell [Sun, 29 Dec 2013 01:11:58 +0000 (20:11 -0500)] 
Mark another timing-sensitive test as skipOnTravis.

11 years agoDisable the "bad_host" tests on CaresResolver
Ben Darnell [Sun, 29 Dec 2013 01:11:20 +0000 (20:11 -0500)] 
Disable the "bad_host" tests on CaresResolver

This is an unfortunate hack, but c-ares doesn't handle fake NXDOMAIN
responses in the same way as other resolvers.

11 years agoMerge pull request #965 from ajdavis/twisted-resolver-err
bdarnell [Sun, 29 Dec 2013 00:44:20 +0000 (16:44 -0800)] 
Merge pull request #965 from ajdavis/twisted-resolver-err

Error handling in TwistedResolver

11 years agoAdd some markup to the old template intro docs.
Ben Darnell [Sun, 29 Dec 2013 00:38:16 +0000 (19:38 -0500)] 
Add some markup to the old template intro docs.

Closes #967.

11 years agoError handling in TwistedResolver 965/head
A. Jesse Jiryu Davis [Tue, 24 Dec 2013 21:02:07 +0000 (15:02 -0600)] 
Error handling in TwistedResolver

11 years agoImprove log message for invalid unicode.
Ben Darnell [Mon, 23 Dec 2013 22:33:46 +0000 (17:33 -0500)] 
Improve log message for invalid unicode.

Truncate long values, and include the argument name if available.

11 years agoMerge pull request #963 from minrk/invalid-unicode
bdarnell [Mon, 23 Dec 2013 22:25:46 +0000 (14:25 -0800)] 
Merge pull request #963 from minrk/invalid-unicode

bad unicode in URLs shouldn't cause 500

11 years agoexpect log message in test_decode_argument_invalid_unicode 963/head
MinRK [Mon, 23 Dec 2013 22:23:36 +0000 (14:23 -0800)] 
expect log message in test_decode_argument_invalid_unicode

11 years agoRemove new HTTPRequest.if_modified_since property.
Ben Darnell [Mon, 23 Dec 2013 22:08:01 +0000 (17:08 -0500)] 
Remove new HTTPRequest.if_modified_since property.

This property was unusual in that its getter returned a value its
setter would not accept, and was redundant with direct access to the
headers.

Use the property setters in the constructor instead of duplicating logic.

11 years agorase 400, not 500 on invalid unicode in decode_argument
MinRK [Mon, 23 Dec 2013 00:34:06 +0000 (16:34 -0800)] 
rase 400, not 500 on invalid unicode in decode_argument

11 years agoMerge pull request #945 from chrismcguire/request_body_property
bdarnell [Mon, 23 Dec 2013 21:58:10 +0000 (13:58 -0800)] 
Merge pull request #945 from chrismcguire/request_body_property

Add properties corresponding to HTTPRequest constructor arguments

11 years agoMinor cleanups for import deadlock test:
Ben Darnell [Mon, 23 Dec 2013 21:10:42 +0000 (16:10 -0500)] 
Minor cleanups for import deadlock test:
* Avoid _test.py suffix for file that doesn't contain test cases.
* Resolve localhost instead of tornadoweb.org to avoid network dependency.
* Tighten timeout and add an alarm so failed tests don't leave orphaned
  child processes.
* Avoid busy loop while waiting for child to exit.

11 years agoMerge pull request #964 from ajdavis/resolver-deadlock
bdarnell [Mon, 23 Dec 2013 21:01:48 +0000 (13:01 -0800)] 
Merge pull request #964 from ajdavis/resolver-deadlock

Prevent a deadlock if ThreadedResolver resolves a unicode hostname at module-import time.

11 years agoPrevent a deadlock if ThreadedResolver resolves a unicode hostname at module-import... 964/head
A. Jesse Jiryu Davis [Mon, 16 Dec 2013 23:56:05 +0000 (18:56 -0500)] 
Prevent a deadlock if ThreadedResolver resolves a unicode hostname at module-import time.

11 years agotest that invalid unicode doesn't raise 500
MinRK [Sun, 22 Dec 2013 06:29:40 +0000 (22:29 -0800)] 
test that invalid unicode doesn't raise 500

11 years agoUn-force relative in format_date
Anton Shestakov [Sun, 22 Dec 2013 05:07:10 +0000 (13:07 +0800)] 
Un-force relative in format_date

11 years agoSet altered HTTPRequest attributes as parameters. 945/head
Chris McGuire [Mon, 25 Nov 2013 18:08:03 +0000 (13:08 -0500)] 
Set altered HTTPRequest attributes as parameters.

11 years agoMerge pull request #949 from Lardjo/patch-1
bdarnell [Mon, 2 Dec 2013 12:55:49 +0000 (04:55 -0800)] 
Merge pull request #949 from Lardjo/patch-1

Added closing parenthesis

11 years agoUpdate gen.py 949/head
Konstantin [Mon, 2 Dec 2013 08:04:01 +0000 (11:04 +0300)] 
Update gen.py

Docs. Missing closing parenthesis on example.

11 years agoMerge pull request #944 from anton-ryzhov/reset_flags
bdarnell [Sun, 1 Dec 2013 21:14:42 +0000 (13:14 -0800)] 
Merge pull request #944 from anton-ryzhov/reset_flags

Reset state on `start()` end

11 years agoMerge pull request #940 from klaussfreire/master
bdarnell [Sun, 1 Dec 2013 21:09:59 +0000 (13:09 -0800)] 
Merge pull request #940 from klaussfreire/master

Speed up gen.corouting when yielding done Futures

11 years agoMake setuptools optional again in setup.py.
Ben Darnell [Sun, 1 Dec 2013 21:01:35 +0000 (16:01 -0500)] 
Make setuptools optional again in setup.py.

11 years agoUpdate docs for LogFormatter constructor arguments.
Ben Darnell [Sun, 1 Dec 2013 20:47:05 +0000 (15:47 -0500)] 
Update docs for LogFormatter constructor arguments.

11 years agoMerge pull request #931 from SuminAndrew/LogFormatter-format
bdarnell [Sun, 1 Dec 2013 20:43:46 +0000 (12:43 -0800)] 
Merge pull request #931 from SuminAndrew/LogFormatter-format

add custom fmt and datefmt to LogFormatter

11 years agoAvoid a quote mark that renders incorrectly in PDF mode.
Ben Darnell [Sun, 1 Dec 2013 20:07:16 +0000 (15:07 -0500)] 
Avoid a quote mark that renders incorrectly in PDF mode.

Closes #935.

11 years agoDocument the attributes required by @run_on_executor.
Ben Darnell [Sun, 1 Dec 2013 20:04:02 +0000 (15:04 -0500)] 
Document the attributes required by @run_on_executor.

Closes #933.

11 years agoMerge pull request #936 from ticosax/add-timeout-on-future
bdarnell [Sun, 1 Dec 2013 14:44:09 +0000 (06:44 -0800)] 
Merge pull request #936 from ticosax/add-timeout-on-future

Pass timeout argument to Future.result

11 years agoMerge pull request #937 from lepture/fix-assert
bdarnell [Sat, 30 Nov 2013 18:21:44 +0000 (10:21 -0800)] 
Merge pull request #937 from lepture/fix-assert

Raise TypeError instead of AssertionError.

11 years agoReset state on `start()` end 944/head
Anton Ryzhov [Mon, 25 Nov 2013 15:06:08 +0000 (19:06 +0400)] 
Reset state on `start()` end

11 years agoSpeed up gen.corouting when yielding done Futures 940/head
Claudio Freire [Tue, 19 Nov 2013 17:24:48 +0000 (14:24 -0300)] 
Speed up gen.corouting when yielding done Futures

11 years agoRaise TypeError instead of AssertionError. 937/head
Hsiaoming Yang [Mon, 18 Nov 2013 02:17:50 +0000 (10:17 +0800)] 
Raise TypeError instead of AssertionError.

11 years agoPass timeout argument to Future.result 936/head
Nicolas Delaby [Sun, 17 Nov 2013 18:36:28 +0000 (19:36 +0100)] 
Pass timeout argument to Future.result