Commit Graph

3023 Commits

Author SHA1 Message Date
Ben Darnell bd2d680711 Rename next.rst to v4.3.0.rst 2015-11-06 15:08:06 -05:00
Ben Darnell 05f8c07173 Link to the users' guide from the release notes. 2015-11-05 21:54:38 -05:00
Ben Darnell 1ecc7386da Make "headers too large" test understand 431 response code. 2015-10-25 13:52:25 -04:00
Ben Darnell a0dfdd8430 Mark another test as http/1 only 2015-10-25 12:59:00 -04:00
Ben Darnell 5268068cb5 Re-run our custom fixers to normalize future imports 2015-10-25 11:20:10 -04:00
Ben Darnell 2bc77f6e10 Fix firewall prompts when running tests. 2015-10-24 21:13:44 -04:00
Ben Darnell b3d64df007 Rewrite prerequisites section of index.rst.
Remove redundant parts of README; link to tornadoweb.org instead.
2015-10-24 19:07:59 -04:00
Ben Darnell aebf0088fc Set version number to 4.3b2 2015-10-24 18:03:48 -04:00
Ben Darnell 0f2168723b Find 'httponly' case-insensitively 2015-10-24 13:53:26 -04:00
Ben Darnell 64c0f06d68 Update tests and docs for recent changes 2015-10-24 13:18:37 -04:00
fernando f37d9b75f3 Added xsrf_cookie_kwargs to control xsrf cookie settings 2015-10-24 12:03:23 -04:00
Ben Darnell 0d3479b4d0 Merge pull request #1558 from maartenbreddels/patch-1
Return HTTPServer in Application.listen
2015-10-24 12:00:18 -04:00
Ben Darnell eaf34865a6 Merge pull request #1563 from szweep/response_hdrs_fix
Check for Content-Length and Transfer-Encoding
2015-10-24 10:32:27 -04:00
Ben Darnell 8a22811719 Merge pull request #1567 from bdarnell/root-static-path-test
Make test_root_static_path more robust.
2015-10-24 10:22:51 -04:00
Ben Darnell dc5657c40c Make test_root_static_path more robust.
Always convert `__file__` to an absolute path (this is already
guaranteed in Python 3.4+, but in older versions it would sometimes be
relative). Encode the path so the test can pass when run from a
directory containing spaces or other special characters.

Fixes #1565
2015-10-24 09:57:16 -04:00
szweep 233e4df5c0 Restrict header check to SimpleAsyncHTTPClient 2015-10-23 12:23:09 -04:00
szweep e83251146d Check for Content-Length and Transfer-Encoding
If an HTTP response contains both Content-Length and
Transfer-Encoding headers, flag this as an error as
per RFC 7230, Section 3.3.3#3. Also added a unit test
to validate the code.
2015-10-23 10:24:35 -04:00
Ben Darnell d50be4e5f5 Merge pull request #1560 from pathcl/master
PEP8 fix docs/conf.py:91:1: E122 continuation line missing indentation
2015-10-20 11:58:08 -04:00
Luis San Martin 65a5fe10d5 PEP8 fix docs/conf.py:91:1: E122 continuation line missing indentation or outdented 2015-10-20 12:28:52 -03:00
Maarten Breddels b5d6734893 Return HTTPServer in Application.listen
For unittesting I start and stop the server in setUp and tearDown. If I use Application.listen I don't have a reference to the HTTPServer and cannot close the socket. Binding it to the same address the next time will result in a address in use error. If the server is returned, calling close on it will allow the address/port to be reused.
2015-10-19 17:24:55 +02:00
Ben Darnell 2c543d276d Set version number to 4.3b1 2015-10-19 00:11:02 +02:00
Ben Darnell 944cf2e453 Update next-release notes 2015-10-19 00:04:47 +02:00
Ben Darnell 30bc9633a0 Merge pull request #1557 from bdarnell/backports-abc-singledispatch
Make singledispatch and backports_abc mandatory dependencies.
2015-10-18 23:50:41 +02:00
Ben Darnell 3546700898 Fix singledispatch for asyncio on py26.
Disable singledispatch tests for twisted on py26 because it doesn't
work.
2015-10-18 23:12:50 +02:00
Ben Darnell 7b3e31be1f Make singledispatch and backports_abc mandatory dependencies.
I anticipate confusion around the differing behavior based on whether or
not these packages are installed, so it's better to just make them
mandatory (except on app engine).
2015-10-18 22:34:47 +02:00
Ben Darnell b9d8e00ad5 Slight update to bit-rotted test.
Currently failing because tornaduv doesn't support the new 4.2
make_current features.
2015-10-18 21:52:17 +02:00
Ben Darnell 4747c95a9d Fix tests in the app engine sandbox 2015-10-18 21:52:17 +02:00
Ben Darnell 7a0b4aab6c Merge pull request #1553 from xbao/fix-gcc-warning
Add void to empty function parameter
2015-10-18 15:44:27 +02:00
Xiao Bao Clark 8b3a08698c Add void to empty function parameter
This fixes the gcc warning:

tornado/speedups.c:49:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
 initspeedups() {
 ^
2015-10-16 22:50:24 +11:00
Ben Darnell f2b3d8eb9f Merge pull request #1550 from ajdavis/gen_test-native-coroutines
Update gen_test for native coroutines.
2015-10-13 23:34:58 +02:00
A. Jesse Jiryu Davis a02d4f67b9 Update gen_test for native coroutines. 2015-10-12 13:46:17 -04:00
Ben Darnell 943e14e394 Remove redundant travis_retry calls.
Thanks @ajdavis
2015-10-04 00:26:25 -04:00
Ben Darnell d739c5464d Merge pull request #1542 from bdarnell/async-await
More polish for native coroutines
2015-10-03 23:13:54 -04:00
Ben Darnell 99527e1f03 Document some subtleties of native coroutines 2015-10-03 22:45:43 -04:00
Ben Darnell 5590741eae Support other yieldables in to_asyncio_future. 2015-10-03 22:28:15 -04:00
Ben Darnell 53bf664844 Modernize asyncio "yield from" test. 2015-10-03 22:28:15 -04:00
Ben Darnell 95a17c6c4b Recognize other yieldables in web.asynchronous.
Disallow non-None results.
2015-10-03 22:28:15 -04:00
Ben Darnell b20ca363c7 Support other yieldables for httpclient body_producer 2015-10-03 22:28:15 -04:00
Ben Darnell 2237a72af7 Recognize other yieldables in IOLoop._run_callback. 2015-10-03 22:28:14 -04:00
Ben Darnell 7bdbd0b2ab Add support for native coroutines in IOLoop.run_sync.
Remove support for synchronous functions with non-None results.
2015-10-03 22:28:14 -04:00
Ben Darnell abdb692dd8 Allow mixes of native coroutines and YieldPoints in gen.multi. 2015-10-03 22:28:14 -04:00
Ben Darnell 52f94d0067 Deprecate gen.maybe_future and remove all internal uses.
This allows native coroutines in the HTTPMessageDelegate.data_received
methods.
2015-10-03 22:28:14 -04:00
Ben Darnell 2d508a496f Tweak a timing-sensitive test.
This one seems especially flaky on appveyor.
2015-10-03 14:20:55 -04:00
Ben Darnell 70b0cffa27 Merge pull request #1541 from bdarnell/test-fixes
Test fixes
2015-10-03 13:59:15 -04:00
Ben Darnell dddd721e0a Fix twistedlayered test.
Disable a test that fails under the trollius IOLoop.

Disable some additional logging.
2015-10-03 13:06:03 -04:00
Ben Darnell 1a86cd14e7 Merge pull request #1540 from bdarnell/ci-versions
Update versions in CI/tox configs.
2015-10-03 11:51:42 -04:00
Ben Darnell 50665e0f81 Force simple_httpclient in path traversal test.
This fails with recent versions of libcurl because curl now processes
".." on the client side.
2015-10-03 11:40:22 -04:00
Ben Darnell fe02b565fc Update versions in CI/tox configs. 2015-10-03 11:22:19 -04:00
Ben Darnell bef7b324f5 Support PATCH with body in curl_httpclient.
This previously required `allow_nonstandard_methods`.

Refine the body sanity checks and tests (followup to #1531).
2015-10-03 10:43:22 -04:00
Ben Darnell 666e5561a3 Merge pull request #1531 from stj/master
Perform sanity checks on request.body only if allow_nonstandard_metho…
2015-10-03 09:54:18 -04:00