]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
13 years agoRequestHander is set up to handle "OPTIONS" requests, but the 469/head
Sean Creeley [Thu, 23 Feb 2012 14:58:58 +0000 (09:58 -0500)] 
RequestHander is set up to handle "OPTIONS" requests, but the
SimpleAsyncHTTPClient does not allow "OPTIONS" requests. This is a
pain when you are trying to write test cases for CORS. This simple
patch adds "OPTIONS" to the supported _SUPPORTED_METHODS in
_HTTPConnection and a test case to go along with it.

13 years agoUpdate twisted test blacklist for Twisted 12.0.0
Ben Darnell [Mon, 20 Feb 2012 09:12:27 +0000 (01:12 -0800)] 
Update twisted test blacklist for Twisted 12.0.0

13 years agoRevert "Remove optional setuptools import."
Ben Darnell [Mon, 20 Feb 2012 08:40:19 +0000 (00:40 -0800)] 
Revert "Remove optional setuptools import."

This reverts commit 50b28c5d7a1ccfc3cc3a5a8fc5cf664880598fc6.

Turns out we do need setuptools in at least one situation:
distutils chokes if there are broken symlinks anywhere in the source
tree, but in testing with a VM there may be "broken" symlinks that point
outside the directory shared with the VM.

13 years agoFix the Host header when using basic auth credentials in the URL.
Ben Darnell [Mon, 20 Feb 2012 06:17:45 +0000 (22:17 -0800)] 
Fix the Host header when using basic auth credentials in the URL.

13 years agoRelease note updates for the last wave of merges
Ben Darnell [Mon, 20 Feb 2012 05:57:52 +0000 (21:57 -0800)] 
Release note updates for the last wave of merges

13 years agoReturn the Etag header on 304 responses to an If-None-Match request.
Ben Darnell [Mon, 20 Feb 2012 05:47:07 +0000 (21:47 -0800)] 
Return the Etag header on 304 responses to an If-None-Match request.

13 years agoRevert "Use copy.deepcopy to clone HTTPRequest when following redirects."
Ben Darnell [Mon, 20 Feb 2012 05:37:50 +0000 (21:37 -0800)] 
Revert "Use copy.deepcopy to clone HTTPRequest when following redirects."

This reverts commit b7e604646537984e967dd25447a8df3e221bf9ed.

Something about this broke the tests.

13 years agoUse copy.deepcopy to clone HTTPRequest when following redirects.
Ben Darnell [Mon, 20 Feb 2012 05:30:15 +0000 (21:30 -0800)] 
Use copy.deepcopy to clone HTTPRequest when following redirects.

This gives each request in a redirect chain its own copy of the
headers dictionary.

Closes #459.

13 years agoIn template, use handler reverse_url instead of application one
Olivier Hardy [Mon, 6 Feb 2012 15:01:11 +0000 (16:01 +0100)] 
In template, use handler reverse_url instead of application one

13 years agoFix locale.get_supported_locales(): remove cls parameter
Olivier Hardy [Mon, 6 Feb 2012 14:40:51 +0000 (15:40 +0100)] 
Fix locale.get_supported_locales(): remove cls parameter

13 years agoMerge remote-tracking branch 'jehiah/max_simultaneous_connections_457'
Ben Darnell [Mon, 20 Feb 2012 04:31:48 +0000 (20:31 -0800)] 
Merge remote-tracking branch 'jehiah/max_simultaneous_connections_457'

13 years agoMerge remote-tracking branch 'grydstedt/master' into work
Ben Darnell [Mon, 20 Feb 2012 04:25:43 +0000 (20:25 -0800)] 
Merge remote-tracking branch 'grydstedt/master' into work

13 years agoTest for https://github.com/facebook/tornado/pull/454
Ben Darnell [Mon, 20 Feb 2012 04:08:26 +0000 (20:08 -0800)] 
Test for https://github.com/facebook/tornado/pull/454

13 years agoMerge remote-tracking branch 'minrk/strkeys' into work
Ben Darnell [Mon, 20 Feb 2012 04:04:13 +0000 (20:04 -0800)] 
Merge remote-tracking branch 'minrk/strkeys' into work

13 years agoFurther refactoring of duplicated IOStream logic
Ben Darnell [Mon, 20 Feb 2012 03:50:01 +0000 (19:50 -0800)] 
Further refactoring of duplicated IOStream logic

13 years agoMerge remote-tracking branch 'birknilson/iostream_refactoring_read' into work
Ben Darnell [Mon, 20 Feb 2012 03:41:50 +0000 (19:41 -0800)] 
Merge remote-tracking branch 'birknilson/iostream_refactoring_read' into work

Conflicts:
tornado/iostream.py

13 years agoPass parsed hostname around explictly instead of storing it on the urlsplit result.
Ben Darnell [Mon, 20 Feb 2012 03:33:08 +0000 (19:33 -0800)] 
Pass parsed hostname around explictly instead of storing it on the urlsplit result.

In some versions of python (including 2.5 and 3.2 but not 2.6 or 2.7),
urlsplit results use __slots__ and therefore don't allow artibrary attributes
to be set.

Also move the storing of the parsed hostname above hostname_mapping,
since the cert should be checked against the requested url, not the remapped
one.

Closes #448.

13 years agoMerge remote-tracking branch 'ei-grad/master' into work
Ben Darnell [Mon, 20 Feb 2012 03:22:31 +0000 (19:22 -0800)] 
Merge remote-tracking branch 'ei-grad/master' into work

13 years agoUse a single Cookie.SimpleCookie for outgoing cookies instead of a list.
Ben Darnell [Mon, 20 Feb 2012 02:47:46 +0000 (18:47 -0800)] 
Use a single Cookie.SimpleCookie for outgoing cookies instead of a list.

The main reason for this change is to repeated calls to set_cookie
overwrite rather than append.

Closes #445.

13 years agoStart a new release-notes file
Ben Darnell [Mon, 20 Feb 2012 02:25:24 +0000 (18:25 -0800)] 
Start a new release-notes file

13 years agoCheck in autopep8 script
Ben Darnell [Thu, 9 Feb 2012 09:08:04 +0000 (01:08 -0800)] 
Check in autopep8 script

13 years agoFix weird indentation in auth.py and simple_httpclient_test.py
Ben Darnell [Thu, 9 Feb 2012 09:00:11 +0000 (01:00 -0800)] 
Fix weird indentation in auth.py and simple_httpclient_test.py

13 years agoWhile I'm touching every file, run autopep8 too.
Ben Darnell [Thu, 9 Feb 2012 08:55:27 +0000 (00:55 -0800)] 
While I'm touching every file, run autopep8 too.

Might as well get all the merge headaches over with at once :)

Ran with
$ autopep8 --ignore=E111,W602 i tornado/*.py tornado/platform/*.py tornado/test/*.py

13 years agoTurn on __future__ division too.
Ben Darnell [Thu, 9 Feb 2012 08:17:58 +0000 (00:17 -0800)] 
Turn on __future__ division too.

All existing uses of division were already using a float for at least
one operand (except the tests that just do 1/0 as a quick way to throw
an exception).

We have now turned on all the __future__ options available in python2.5.

13 years agoFix one last implicit relative import
Ben Darnell [Thu, 9 Feb 2012 07:38:34 +0000 (23:38 -0800)] 
Fix one last implicit relative import

13 years agoStandardize future imports for all files in the package.
Ben Darnell [Thu, 9 Feb 2012 07:22:51 +0000 (23:22 -0800)] 
Standardize future imports for all files in the package.

13 years agoAdd a script to rewrite __future__ imports
Ben Darnell [Thu, 9 Feb 2012 07:16:56 +0000 (23:16 -0800)] 
Add a script to rewrite __future__ imports

13 years agopass kwargs through HTTPClient 457/head
Jehiah Czebotar [Sat, 4 Feb 2012 04:46:31 +0000 (23:46 -0500)] 
pass kwargs through HTTPClient

13 years agoAdd support for client certificates in curl http client 456/head
Gustav Rydstedt [Fri, 3 Feb 2012 23:28:31 +0000 (15:28 -0800)] 
Add support for client certificates in curl http client

13 years agocoerce kwarg keys to str 454/head
MinRK [Thu, 2 Feb 2012 22:05:59 +0000 (14:05 -0800)] 
coerce kwarg keys to str

If handler regex is unicode, the keys of groupdict are unicode, but should be
str, as Python < 2.6.5 does not accept unicode keys in:

    _execute(*args, **kwargs)

Since they are for keyword args, they will be valid identifiers, and thus ascii.

13 years agoMove identical IOStream read handling in read_until, read_until_regex 453/head
Birk Nilson [Thu, 2 Feb 2012 20:35:24 +0000 (21:35 +0100)] 
Move identical IOStream read handling in read_until, read_until_regex
and read_bytes to private method.

13 years agoRemove unused __main__ block that ran doctests from a non-test module.
Ben Darnell [Thu, 2 Feb 2012 17:56:47 +0000 (09:56 -0800)] 
Remove unused __main__ block that ran doctests from a non-test module.

13 years agoMerge remote-tracking branch 'igorsobreira/master'
Ben Darnell [Thu, 2 Feb 2012 17:44:18 +0000 (09:44 -0800)] 
Merge remote-tracking branch 'igorsobreira/master'

13 years agoEnable strict warnings in test runs.
Ben Darnell [Wed, 1 Feb 2012 17:15:23 +0000 (09:15 -0800)] 
Enable strict warnings in test runs.

This includes python 3.2's ResourceWarnings, which exposed the
socket leaks fixed in the previous commit.

13 years agoAlways close sockets in simple_httpclient instead of leaving them for the GC.
Ben Darnell [Wed, 1 Feb 2012 17:17:03 +0000 (09:17 -0800)] 
Always close sockets in simple_httpclient instead of leaving them for the GC.

Also fix some other sockets left open in tests.

Closes #451.

13 years agoAdd a version check for the curses unicode hack so it won't break when
Ben Darnell [Tue, 31 Jan 2012 08:34:12 +0000 (00:34 -0800)] 
Add a version check for the curses unicode hack so it won't break when
python 3.2.3 or 3.3 are released.

Closes #450.

13 years agoRemove optional setuptools import.
Ben Darnell [Tue, 31 Jan 2012 07:46:36 +0000 (23:46 -0800)] 
Remove optional setuptools import.

We don't rely on any setuptools features for python2 builds, and the
optional import makes our builds depend on the environment in subtle
ways (egg-info directories, etc).

13 years agoBump post-release version number (now pep 386 compliant!)
Ben Darnell [Tue, 31 Jan 2012 07:39:31 +0000 (23:39 -0800)] 
Bump post-release version number (now pep 386 compliant!)

13 years agoRevert "Run the website in python2.7 mode"
Ben Darnell [Mon, 30 Jan 2012 19:10:17 +0000 (11:10 -0800)] 
Revert "Run the website in python2.7 mode"

Can't use python2.7 mode without migrating to the "high-replication
datastore", and even though we don't have any data "migration" is a
pain.

This reverts commit e960e9bc9d48906ed37b65ad6eb774ab33637170.

13 years agoSet version number to 2.2. v2.2.0
Ben Darnell [Mon, 30 Jan 2012 19:01:44 +0000 (11:01 -0800)] 
Set version number to 2.2.

13 years agoFinal release notes for 2.2
Ben Darnell [Mon, 30 Jan 2012 19:01:35 +0000 (11:01 -0800)] 
Final release notes for 2.2

13 years agoRun the website in python2.7 mode
Ben Darnell [Mon, 30 Jan 2012 05:56:53 +0000 (21:56 -0800)] 
Run the website in python2.7 mode

13 years agoAdd a highlights section to the release notes.
Ben Darnell [Mon, 30 Jan 2012 05:53:45 +0000 (21:53 -0800)] 
Add a highlights section to the release notes.

13 years agofixed usage of bad hostname (ipv6 addresses support is broken in urlparse until 2.7) 448/head
Andrew Grigorev [Mon, 30 Jan 2012 04:12:24 +0000 (08:12 +0400)] 
fixed usage of bad hostname (ipv6 addresses support is broken in urlparse until 2.7)

13 years agoAdd test to parse_multipart_form_data() when no "name" parameter is found 444/head
Igor Sobreira [Wed, 25 Jan 2012 02:19:40 +0000 (00:19 -0200)] 
Add test to parse_multipart_form_data() when no "name" parameter is found

13 years agoAdd test to parse_multipart_form_data() when line does not end with the correct line...
Igor Sobreira [Wed, 25 Jan 2012 02:14:17 +0000 (00:14 -0200)] 
Add test to parse_multipart_form_data() when line does not end with the correct line break (\r\n)

13 years agoAdd test to parse_multipart_form_data() when invalid Content-Disposition
Igor Sobreira [Wed, 25 Jan 2012 01:48:54 +0000 (23:48 -0200)] 
Add test to parse_multipart_form_data() when invalid Content-Disposition

13 years agoAdd test to parse_multipart_form_data() when missing headers
Igor Sobreira [Wed, 25 Jan 2012 01:43:47 +0000 (23:43 -0200)] 
Add test to parse_multipart_form_data() when missing headers

13 years agoAdd test to parse_multipart_form_data() on httputil when "boundary" parameter has...
Igor Sobreira [Wed, 25 Jan 2012 00:45:18 +0000 (22:45 -0200)] 
Add test to parse_multipart_form_data() on httputil when "boundary" parameter has quotes

13 years agoDocument curl_httpclient empty password fix.
Ben Darnell [Mon, 23 Jan 2012 18:20:35 +0000 (10:20 -0800)] 
Document curl_httpclient empty password fix.

Accept None as auth_password in simple_httpclient for consistency with
curl_httpclient.

13 years agoMerge commit 'df23c'
Ben Darnell [Mon, 23 Jan 2012 18:12:56 +0000 (10:12 -0800)] 
Merge commit 'df23c'

13 years agoFix gen.engine docs on decorator order.
Ben Darnell [Mon, 23 Jan 2012 17:45:29 +0000 (09:45 -0800)] 
Fix gen.engine docs on decorator order.

Add some more test cases that use gen.engine and web.asynchronous together.

13 years agochange encode('ascii') to utf8() 442/head 443/head
dave mankoff [Mon, 23 Jan 2012 13:33:51 +0000 (08:33 -0500)] 
change encode('ascii') to utf8()

13 years agoAdd a timeout to test_sslv2_fail so it passes on cygwin.
Ben Darnell [Mon, 23 Jan 2012 02:15:01 +0000 (18:15 -0800)] 
Add a timeout to test_sslv2_fail so it passes on cygwin.

13 years agoDoc updates
Ben Darnell [Mon, 23 Jan 2012 01:52:43 +0000 (17:52 -0800)] 
Doc updates

13 years agoRelease note updates
Ben Darnell [Mon, 23 Jan 2012 01:04:51 +0000 (17:04 -0800)] 
Release note updates

13 years agoMake StaticFileHandler.parse_url_path an instance method, and make
Ben Darnell [Sun, 22 Jan 2012 23:26:35 +0000 (15:26 -0800)] 
Make StaticFileHandler.parse_url_path an instance method, and make
it responsible for os.path.sep conversion.

Assorted doc updates for StaticFileHandler.

13 years agoMerge commit '59812' into work
Ben Darnell [Sun, 22 Jan 2012 22:56:21 +0000 (14:56 -0800)] 
Merge commit '59812' into work

13 years agoMerge remote-tracking branch 'birknilson/static_url_override' into work
Ben Darnell [Sun, 22 Jan 2012 22:25:16 +0000 (14:25 -0800)] 
Merge remote-tracking branch 'birknilson/static_url_override' into work

13 years agoAlways set Etag in StaticFileHandler so it won't break if the default
Ben Darnell [Sun, 22 Jan 2012 22:19:19 +0000 (14:19 -0800)] 
Always set Etag in StaticFileHandler so it won't break if the default
Etag implementation in RequestHandler changes.

13 years agofix curl basic auth
dave mankoff [Sun, 22 Jan 2012 22:15:10 +0000 (17:15 -0500)] 
fix curl basic auth

13 years agoMerge remote-tracking branch 'lerks/master' into work
Ben Darnell [Sun, 22 Jan 2012 22:10:14 +0000 (14:10 -0800)] 
Merge remote-tracking branch 'lerks/master' into work

13 years agoUpdate websocket chat demo to work when not addressed as localhost.
Ben Darnell [Sun, 22 Jan 2012 01:39:37 +0000 (17:39 -0800)] 
Update websocket chat demo to work when not addressed as localhost.

Turn on draft76 support.

13 years agoMerge remote-tracking branch 'MrJoes/master' into work
Ben Darnell [Sun, 22 Jan 2012 01:28:07 +0000 (17:28 -0800)] 
Merge remote-tracking branch 'MrJoes/master' into work

Conflicts:
tornado/websocket.py

13 years agoRefactor websocket close logic; remove dependency on singleton IOLoop.
Ben Darnell [Sun, 22 Jan 2012 01:20:10 +0000 (17:20 -0800)] 
Refactor websocket close logic; remove dependency on singleton IOLoop.

13 years agoDisable slow websocket performance tests by default.
Ben Darnell [Sun, 22 Jan 2012 01:12:22 +0000 (17:12 -0800)] 
Disable slow websocket performance tests by default.

Add pypy to the mix for when we do run the perf tests.  Depending on
the benchmark pypy is ~twice as fast as cpython 2.7

13 years agoRemove stray log line
Ben Darnell [Sun, 22 Jan 2012 00:16:36 +0000 (16:16 -0800)] 
Remove stray log line

13 years agoCheck if the stream is closed before writing final websocket close packet.
Ben Darnell [Sat, 21 Jan 2012 23:58:35 +0000 (15:58 -0800)] 
Check if the stream is closed before writing final websocket close packet.

Closes #390.

13 years agoWebsocket subprotocol updates.
Ben Darnell [Sat, 21 Jan 2012 23:34:11 +0000 (15:34 -0800)] 
Websocket subprotocol updates.

Failure to select a subprotocol is not fatal, so rename method from
validate_subprotocol to select_subprotocol.  Subprotocols are a
comma-separated list in the RFC version, but a single value in
draft76.

13 years agoMerge remote-tracking branch 'davidgaleano/master' into work
Ben Darnell [Sat, 21 Jan 2012 23:15:12 +0000 (15:15 -0800)] 
Merge remote-tracking branch 'davidgaleano/master' into work

Conflicts:
tornado/websocket.py

13 years agoAllow handlers to override the selection of "ws" or "wss" in the draft76
Ben Darnell [Sat, 21 Jan 2012 22:56:43 +0000 (14:56 -0800)] 
Allow handlers to override the selection of "ws" or "wss" in the draft76
handshake, to work with SSL proxies that do not insert an X-Scheme header.

Closes #437.

13 years agoMerge remote-tracking branch 'nephics/master' into work
Ben Darnell [Sat, 21 Jan 2012 22:45:51 +0000 (14:45 -0800)] 
Merge remote-tracking branch 'nephics/master' into work

13 years agoCheck in a requirements file for the tools I use while working on tornado.
Ben Darnell [Sat, 21 Jan 2012 22:35:21 +0000 (14:35 -0800)] 
Check in a requirements file for the tools I use while working on tornado.

13 years agoAdd .coveragerc for test coverage reporting.
Ben Darnell [Sat, 21 Jan 2012 22:09:18 +0000 (14:09 -0800)] 
Add .coveragerc for test coverage reporting.

Closes #439.

13 years agoAdd 307 too and update release notes.
Ben Darnell [Wed, 18 Jan 2012 09:17:30 +0000 (01:17 -0800)] 
Add 307 too and update release notes.

13 years agoMerge remote-tracking branch 'amorton/master'
Ben Darnell [Wed, 18 Jan 2012 09:11:21 +0000 (01:11 -0800)] 
Merge remote-tracking branch 'amorton/master'

Conflicts:
tornado/test/simple_httpclient_test.py

13 years agoRelease note updates for twitter client changes
Ben Darnell [Wed, 18 Jan 2012 09:00:06 +0000 (01:00 -0800)] 
Release note updates for twitter client changes

13 years agoMake TwitterMixin.twitter_request accept complete urls, not just partial paths.
Ben Darnell [Wed, 18 Jan 2012 08:57:55 +0000 (00:57 -0800)] 
Make TwitterMixin.twitter_request accept complete urls, not just partial paths.

Closes #418.

13 years agoMerge remote-tracking branch 'gutomaia/master'
Ben Darnell [Wed, 18 Jan 2012 08:51:30 +0000 (00:51 -0800)] 
Merge remote-tracking branch 'gutomaia/master'

13 years agoAdd RequestHandler.on_finish method.
Ben Darnell [Wed, 18 Jan 2012 08:43:38 +0000 (00:43 -0800)] 
Add RequestHandler.on_finish method.

Closes #367.

13 years agoMajor update to tornado.platform.twisted.
Ben Darnell [Tue, 17 Jan 2012 07:23:21 +0000 (23:23 -0800)] 
Major update to tornado.platform.twisted.

Significantly improved compatibility (most important changes are in
TornadoReactor._invoke_callback) and expanded test coverage.

13 years agoSupport non-integer timeouts for curl_httpclient.
Ben Darnell [Sat, 14 Jan 2012 07:12:39 +0000 (23:12 -0800)] 
Support non-integer timeouts for curl_httpclient.

Closes #399.

13 years agoAdd a fourth release status field to tornado.version_info.
Ben Darnell [Sat, 14 Jan 2012 07:07:37 +0000 (23:07 -0800)] 
Add a fourth release status field to tornado.version_info.

Closes #432.

13 years agoRelease note update
Ben Darnell [Sat, 14 Jan 2012 07:06:49 +0000 (23:06 -0800)] 
Release note update

13 years agoMerge remote-tracking branch 'pkienzle/master'
Ben Darnell [Sat, 14 Jan 2012 06:51:26 +0000 (22:51 -0800)] 
Merge remote-tracking branch 'pkienzle/master'

13 years agoThe Connection request header should be case-insensitive.
Ben Darnell [Sat, 14 Jan 2012 06:42:16 +0000 (22:42 -0800)] 
The Connection request header should be case-insensitive.

13 years agoAdd a new(er) ubuntu vm setup to test missing SSLv2
Ben Darnell [Tue, 10 Jan 2012 18:26:15 +0000 (10:26 -0800)] 
Add a new(er) ubuntu vm setup to test missing SSLv2

13 years agoSome python/openssl builds don't have SSLv2 compiled in, so skip the
Ben Darnell [Tue, 10 Jan 2012 18:24:10 +0000 (10:24 -0800)] 
Some python/openssl builds don't have SSLv2 compiled in, so skip the
test in this case.

13 years agomake sure addresses returned from getaddrinfo are unique 435/head
Paul Kienzle [Tue, 10 Jan 2012 17:41:43 +0000 (12:41 -0500)] 
make sure addresses returned from getaddrinfo are unique

13 years agoRelease notes for the last two ssl changes
Ben Darnell [Tue, 10 Jan 2012 07:50:43 +0000 (23:50 -0800)] 
Release notes for the last two ssl changes

13 years agoDisable SSLv2 in simple_httpclient.
Ben Darnell [Mon, 9 Jan 2012 19:59:24 +0000 (11:59 -0800)] 
Disable SSLv2 in simple_httpclient.

Contrary to the python documentation, SSLv2 is enabled by default
unless openssl version 1.0 or newer is used; older versions appear
to still be in use (e.g. in Ubuntu 10.04 LTS and Mac OS X Lion)

13 years agoMake SSLIOStream compatible with SSLv3- and TLSv1-only servers.
Ben Darnell [Mon, 9 Jan 2012 18:33:01 +0000 (10:33 -0800)] 
Make SSLIOStream compatible with SSLv3- and TLSv1-only servers.

Due to some implementation detail the default SSLv23 mode allows reads
before the handshake has completed, but the other modes do not.

Closes #431.

13 years agoMake it possible to run the test suite with --httpclient=CurlAsyncHTTPClient
Ben Darnell [Sun, 8 Jan 2012 21:49:30 +0000 (13:49 -0800)] 
Make it possible to run the test suite with --httpclient=CurlAsyncHTTPClient

13 years agoUpdate docs for recent websocket changes
Ben Darnell [Sun, 8 Jan 2012 08:01:18 +0000 (00:01 -0800)] 
Update docs for recent websocket changes

13 years agoDisable websocket draft76 protocol by default.
Ben Darnell [Sun, 8 Jan 2012 07:24:30 +0000 (23:24 -0800)] 
Disable websocket draft76 protocol by default.

13 years agoAdd an explicit binary option to WebSocketHandler.write_message.
Ben Darnell [Sun, 8 Jan 2012 01:31:56 +0000 (17:31 -0800)] 
Add an explicit binary option to WebSocketHandler.write_message.

Switching automatically based on python's bytes vs unicode types is
error-prone in python2 where e.g. json_encode returns bytes.

Closes #429.

13 years agoSet the request cookies property to an empty dict if cookie parsing fails 428/head
Jacob Sondergaard [Thu, 5 Jan 2012 11:17:01 +0000 (12:17 +0100)] 
Set the request cookies property to an empty dict if cookie parsing fails

This commit reverses the bug introduced in commit 4a4d871, leaving an
undefined cookies property on failure to parse a request cookie.

The bug results in a 'NoneType is not iterable' error when calling
RequestHandler.get_cookie() after a cookie parsing exception.

13 years agoHandle redirects before processing data and sending it to streaming_callback.
Ben Darnell [Thu, 5 Jan 2012 08:27:45 +0000 (00:27 -0800)] 
Handle redirects before processing data and sending it to streaming_callback.

Previously, if you were using follow_redirects and streaming_callback
and hit a redirect with a non-empty body, that body would be passed
to streaming_callback as well.

As a side effect, this improves compatibility with some misconfigured
sites that send Content-Encoding: gzip on redirects without actually
compressing the body.

13 years agoMake fork_processes raise SystemExit instead of returning None when
Ben Darnell [Wed, 4 Jan 2012 05:19:51 +0000 (21:19 -0800)] 
Make fork_processes raise SystemExit instead of returning None when
all child processes exit cleanly.

13 years agoAdd comment about (non-)thread-safety of IOLoop.add_timeout.
Ben Darnell [Tue, 3 Jan 2012 03:17:57 +0000 (19:17 -0800)] 
Add comment about (non-)thread-safety of IOLoop.add_timeout.