Commit Graph

2295 Commits

Author SHA1 Message Date
A. Jesse Jiryu Davis cd420dd574 Properly restore ASYNC_TEST_TIMEOUT after test. 2014-07-12 14:25:13 -04:00
Ben Darnell 1e3379732c Merge pull request #1101 from tioover/master
typo
2014-07-10 14:24:30 -04:00
Tengfei Tsui 69ce14e9cb typo 2014-07-10 17:15:43 +08:00
Ben Darnell 8b5c4ae272 Set version number to 4.0b3. 2014-07-08 22:50:05 -04:00
Ben Darnell 943dbdf308 Add XSRF change to the release notes. 2014-07-08 22:49:30 -04:00
Ben Darnell dba499ceb0 Merge remote-tracking branch 'tictail/branch3.2'
Closes #1097
2014-07-08 22:27:35 -04:00
William Tisäter ab688e7a1b Catch `binascii.a2b_hex` errors on Python 3 2014-07-08 15:52:25 +02:00
William Tisäter 2299cf96bb Don't raise when failing to hex decode XSRF v1 2014-07-08 09:07:48 +02:00
William Tisäter d881dd2f87 Turn short and hex XSRF tests into success tests 2014-07-08 09:07:18 +02:00
William Tisäter 22e8614fdd Remove length requirement from v1 XSRF tokens 2014-07-07 23:29:44 +02:00
Ben Darnell 9788e4f1ed Fix outdated variable name in docs. 2014-07-06 11:10:09 -04:00
Ben Darnell 6a5881430b Add a test for exception in websocket callbacks. 2014-07-05 18:49:36 -04:00
Ben Darnell 2fdfcb1b19 Rewrite chatdemo to use a coroutine instead of callbacks. 2014-07-05 17:55:44 -04:00
Ben Darnell f1edd3dd15 Merge branch 'guide'
* guide:
  Expand and rewrite the guide docs.
  Split overview.rst into separate files.
2014-07-04 16:04:09 -04:00
Ben Darnell 1b0cc391c7 Expand and rewrite the guide docs. 2014-07-04 15:54:19 -04:00
Ben Darnell 235e52d52a Disable twisted tests on pypy on travis-ci since they seem to be flaky.
They were already disabled in tox.ini.
2014-07-02 22:01:22 -04:00
Ben Darnell f708fe0162 Add tests for both binary and unicode messages in websockets. 2014-07-02 22:00:14 -04:00
Ben Darnell b8d688095b Merge branch 'master' of github.com:tornadoweb/tornado 2014-07-02 21:37:19 -04:00
Ben Darnell 622139eb14 Merge pull request #1091 from xose/patch-1
Fix binary websocket connections
2014-07-02 21:37:11 -04:00
José Martínez 2169e1beb9 Fix binary websocket connections 2014-07-02 23:11:51 +02:00
Ben Darnell aa7b15f074 Set version number to 4.0b2 2014-07-01 08:37:02 -04:00
Ben Darnell 159e10d676 Rename the new-in-4.0 gzip parameter to HTTPServer.
All the gzip-related parameters are now explicit about whether
they compress or decompress and whether they apply to requests or
responses.  For all the parameters that existed prior to 4.0
the old names are accepted as well, but for the new ones in 4.0
we don't need to worry about backwards-compatibility.

This is motivated by the potential confusion around the use of
gzip as a parameter to the Application constructor to indicate
compression of responses and to the HTTPServer constructor to
indicate decompression of requests.
2014-06-30 23:32:50 -04:00
Ben Darnell 76b8ab66f2 Split overview.rst into separate files. 2014-06-28 15:40:55 -07:00
Ben Darnell a91b15c390 Merge pull request #1084 from ukoethe/master
check for errno.WSA* on 64-bit Windows (fixes #1052)
2014-06-25 19:00:35 -07:00
Ben Darnell 5d83890654 Add the start of a new user guide. 2014-06-24 18:58:35 -07:00
Ullrich Koethe fe6a3a872a check for errno.WSA* on 64-bit Windows (fixes #1052) 2014-06-23 14:40:40 +02:00
Ben Darnell 681882b087 Set version number to 4.0b1 2014-06-21 16:02:18 -04:00
Ben Darnell 1535dac8c1 Update docs for deprecations and removals. 2014-06-21 14:20:15 -04:00
Ben Darnell 3824b4c80b Drop support for the draft76 version of WebSockets.
Browsers that only support draft76 are now less common than those
that do not support websockets at all, so applications should
use their non-websocket workarounds for these browsers.
2014-06-21 14:06:59 -04:00
Ben Darnell 3a62caf91c Edit comments to discourage creation of new OutputTransforms. 2014-06-21 14:06:15 -04:00
Ben Darnell b3ccb7b964 Update tests after the removal of get_error_html. 2014-06-21 14:06:14 -04:00
Ben Darnell f5ffe7adc8 Increase the test timeout on travis. 2014-06-21 13:34:03 -04:00
Ben Darnell 3d5c48f831 Remove support for the old get_error_html function. 2014-06-21 13:32:44 -04:00
Ben Darnell c9cac24d0e Remove workarounds for ancient versions of libcurl. 2014-06-21 13:05:57 -04:00
Ben Darnell fb246549af Add pypy3 to tox.ini. 2014-06-21 12:47:40 -04:00
Ben Darnell 2719ed62bf Release note updates. 2014-06-20 00:37:11 -04:00
Ben Darnell 596038c284 Add new exception tornado.web.Finish to quietly end a request.
This allows error pages to be generated inline with the main code
instead of in write_error and is friendlier to generating error pages
from library code.

Closes #1064.
2014-06-19 09:51:53 -04:00
Ben Darnell 2cec3195f2 Introduce IOLoop.call_later and call_at.
call_later is a less-verbose alternative to add_timeout with a
timedelta; call_at exists for symmetry.  Both are named after
methods on the asyncio event loop, although there are small
variations (we support both args and kwargs while asyncio only supports
args; we use remove_timeout(handle) instead of handle.cancel()).

Closes #1049.
2014-06-18 10:29:28 -04:00
Ben Darnell 8953e9beb1 Fix a leak in AsyncHTTPClient shutdown.
Clients created without force_instance=True were never getting
GC'd because we were using the wrong reference for the async_clients
instance cache.

To guard against future errors, failure to remove an instance
from the cache when we expected to now raises an error instead of
failing silently.

Closes #1079.
2014-06-17 10:10:28 -04:00
Ben Darnell 4e9de2e43f Introduce IOLoop.spawn_callback.
This makes it easier and more discoverable to run a callback without
stack_context.

Closes #867.
2014-06-15 23:49:39 -04:00
Ben Darnell a0fe934435 Rename HTTP{In,Out}putException to HTTP{In,Out}putError.
This follows the standard python naming convention for exceptions.
2014-06-15 23:39:00 -04:00
Ben Darnell 66b06d7cf3 Relax restrictions on HTTP methods in WebSocketHandler.
Methods like set_status are now disallowed once the websocket handshake
has begun, but may be used before then.  This applies to application
overrides of prepare() and to WebSocketHandler.get's internal error
handling.

Closes #1065.
2014-06-15 23:35:02 -04:00
Ben Darnell d100cdf71d Document that IOStream.connect blocks on DNS and recommend TCPClient instead.
Closes #861.
2014-06-15 13:36:10 -04:00
Ben Darnell c1ba948d62 Add clearer message for fetch() on closed AsyncHTTPClient.
Closes #866.
2014-06-15 12:40:18 -04:00
Ben Darnell ac05c50ca6 Document AsyncHTTPClient's defaults argument.
Closes #762.
2014-06-15 12:36:28 -04:00
Ben Darnell 1591ade4d0 Improve callback scheduling.
Collect all timeouts to be run before running any of them; this
prevents starvation when a slow callback reschedules itself.

Call time() again before setting poll_timeout to avoid scheduling
anomalies with slow callbacks.

Closes #947.
2014-06-15 12:11:22 -04:00
Ben Darnell 7a0eda1338 Remove async_callback wrapper functions, which have been obsolete since 1.1.
Closes #283.
2014-06-15 11:52:34 -04:00
Ben Darnell 409ddc474a Add ETIMEDOUT to the list of relatively benign unclean-close errnos. 2014-06-15 11:33:46 -04:00
Ben Darnell 99aa924c46 When a function on the IOLoop returns a Future, log its exception. 2014-06-15 11:32:11 -04:00
Ben Darnell 00229a21c2 The next version will be 4.0, not 3.3, so update all references to 3.3. 2014-06-07 11:22:58 -04:00