]>
git.ipfire.org Git - thirdparty/tornado.git/log
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.
Ben Darnell [Sun, 22 Jan 2012 22:10:14 +0000 (14:10 -0800)]
Merge remote-tracking branch 'lerks/master' into work
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.
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
Ben Darnell [Sun, 22 Jan 2012 01:20:10 +0000 (17:20 -0800)]
Refactor websocket close logic; remove dependency on singleton IOLoop.
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
Ben Darnell [Sun, 22 Jan 2012 00:16:36 +0000 (16:16 -0800)]
Remove stray log line
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.
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.
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
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.
Ben Darnell [Sat, 21 Jan 2012 22:45:51 +0000 (14:45 -0800)]
Merge remote-tracking branch 'nephics/master' into work
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.
Ben Darnell [Sat, 21 Jan 2012 22:09:18 +0000 (14:09 -0800)]
Add .coveragerc for test coverage reporting.
Closes #439.
Ben Darnell [Wed, 18 Jan 2012 09:17:30 +0000 (01:17 -0800)]
Add 307 too and update release notes.
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
Ben Darnell [Wed, 18 Jan 2012 09:00:06 +0000 (01:00 -0800)]
Release note updates for twitter client changes
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.
Ben Darnell [Wed, 18 Jan 2012 08:51:30 +0000 (00:51 -0800)]
Merge remote-tracking branch 'gutomaia/master'
Ben Darnell [Wed, 18 Jan 2012 08:43:38 +0000 (00:43 -0800)]
Add RequestHandler.on_finish method.
Closes #367.
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.
Ben Darnell [Sat, 14 Jan 2012 07:12:39 +0000 (23:12 -0800)]
Support non-integer timeouts for curl_httpclient.
Closes #399.
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.
Ben Darnell [Sat, 14 Jan 2012 07:06:49 +0000 (23:06 -0800)]
Release note update
Ben Darnell [Sat, 14 Jan 2012 06:51:26 +0000 (22:51 -0800)]
Merge remote-tracking branch 'pkienzle/master'
Ben Darnell [Sat, 14 Jan 2012 06:42:16 +0000 (22:42 -0800)]
The Connection request header should be case-insensitive.
Ben Darnell [Tue, 10 Jan 2012 18:26:15 +0000 (10:26 -0800)]
Add a new(er) ubuntu vm setup to test missing SSLv2
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.
Paul Kienzle [Tue, 10 Jan 2012 17:41:43 +0000 (12:41 -0500)]
make sure addresses returned from getaddrinfo are unique
Ben Darnell [Tue, 10 Jan 2012 07:50:43 +0000 (23:50 -0800)]
Release notes for the last two ssl changes
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)
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.
Ben Darnell [Sun, 8 Jan 2012 21:49:30 +0000 (13:49 -0800)]
Make it possible to run the test suite with --httpclient=CurlAsyncHTTPClient
Ben Darnell [Sun, 8 Jan 2012 08:01:18 +0000 (00:01 -0800)]
Update docs for recent websocket changes
Ben Darnell [Sun, 8 Jan 2012 07:24:30 +0000 (23:24 -0800)]
Disable websocket draft76 protocol by default.
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.
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.
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.
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.
Ben Darnell [Tue, 3 Jan 2012 03:17:57 +0000 (19:17 -0800)]
Add comment about (non-)thread-safety of IOLoop.add_timeout.
Ben Darnell [Mon, 2 Jan 2012 07:19:48 +0000 (23:19 -0800)]
Release note updates
Ben Darnell [Mon, 2 Jan 2012 06:54:36 +0000 (22:54 -0800)]
Rewrite IP check to use getaddrinfo instead of inet_pton (more portable).
Closes #392.
Ben Darnell [Mon, 2 Jan 2012 06:26:12 +0000 (22:26 -0800)]
Merge remote-tracking branch 'davidwilemski/xheaders-xss' into work
Ben Darnell [Mon, 2 Jan 2012 03:20:05 +0000 (19:20 -0800)]
Use a StackContext to allow exceptions thrown from asynchronous functions
called by a generator to be caught normally.
Closes #405.
Closes #411.
Ben Darnell [Mon, 2 Jan 2012 00:17:35 +0000 (16:17 -0800)]
Allow exceptions thrown in the first (synchronous) phase of a gen.Task
to be caught by the generator.
Ben Darnell [Sun, 1 Jan 2012 22:00:13 +0000 (14:00 -0800)]
Increase maximum IOLoop poll timeout.
I believe the previous 0.2s limit was there to work around an old bug in
the add_callback waker that has since been fixed.
Ben Darnell [Sat, 31 Dec 2011 04:20:25 +0000 (20:20 -0800)]
Support status codes other than 301 and 302 in RequestHandler.redirect().
Closes #228.
Closes #424.
Ben Darnell [Sat, 31 Dec 2011 00:02:40 +0000 (16:02 -0800)]
Avoid merging the entire read buffer for IOStream.read_until.
Among other things, this dramatically speeds up downloads of large
chunked files over a fast network with SimpleHTTPClient.
Fixes #425.
Ben Darnell [Fri, 30 Dec 2011 22:47:21 +0000 (14:47 -0800)]
bytearray is a 2.6ism; use array.array("B") instead for 2.5 compatibility.
Ben Darnell [Fri, 30 Dec 2011 21:29:12 +0000 (13:29 -0800)]
Invert fragment-handling logic for clarity
Ben Darnell [Fri, 30 Dec 2011 20:54:36 +0000 (12:54 -0800)]
Improve websocket conformance as reported by autobahn.
Of note:
* It's now possible to send binary frames (auto-switched based on
whether the argument to write_message is bytes or unicode)
* Invalid utf8 in text frames is now an error
* Lots of fragmentation-related improvements
Ben Darnell [Fri, 30 Dec 2011 20:53:11 +0000 (12:53 -0800)]
Add websocket conformance tests using autobahn
Ben Darnell [Fri, 30 Dec 2011 08:49:19 +0000 (00:49 -0800)]
Install more python versions in the linux VM so we can test epoll.c too.
Also fix a bug in the test for python 2.5 on systems where ipv6 is not
configured (socket.gaierror didn't have an `errno` attribute until 2.6)
Ben Darnell [Fri, 30 Dec 2011 06:58:03 +0000 (22:58 -0800)]
Misc doc updates.
David Wilemski [Sat, 17 Dec 2011 19:48:23 +0000 (14:48 -0500)]
A typo fix I noticed while fixing bug 392
David Wilemski [Sat, 17 Dec 2011 19:45:59 +0000 (14:45 -0500)]
Fix for bug #392
Validates the remote_ip from xheaders using socket.inet_pton
Ben Darnell [Fri, 16 Dec 2011 08:07:25 +0000 (00:07 -0800)]
Fix an implicit relative import
Ben Darnell [Fri, 16 Dec 2011 07:59:42 +0000 (23:59 -0800)]
Start accumulating release notes
Ben Darnell [Fri, 16 Dec 2011 07:35:48 +0000 (23:35 -0800)]
Merge remote-tracking branch 'alekstorm/master' into merge
Ben Darnell [Fri, 16 Dec 2011 07:27:30 +0000 (23:27 -0800)]
Merge remote-tracking branch 'alekstorm/template_comment' into merge
Ben Darnell [Fri, 16 Dec 2011 06:54:51 +0000 (22:54 -0800)]
Improve app engine tests now that SDK 1.6.1 is compatible with virtualenv
Serge S. Koval [Sat, 10 Dec 2011 09:58:16 +0000 (11:58 +0200)]
Minor cleanup.
Serge S. Koval [Sat, 10 Dec 2011 09:56:45 +0000 (11:56 +0200)]
Removed unnecessary checks from appropriate websocket protocol implementations.
Serge S. Koval [Thu, 8 Dec 2011 12:48:38 +0000 (14:48 +0200)]
Connection header must include "Upgrade", but should not be equal to.
Serge S. Koval [Thu, 8 Dec 2011 12:42:37 +0000 (14:42 +0200)]
Additional checks for WebSocket protocol handshake.
Ben Darnell [Wed, 7 Dec 2011 08:36:33 +0000 (00:36 -0800)]
A different approach to template stack traces:
Include the template source line as a comment in the generated code,
and add the magic necessary for python's normal stack traces to print
the (generated) source.
Ben Darnell [Wed, 7 Dec 2011 08:18:42 +0000 (00:18 -0800)]
Merge remote-tracking branch 'alekstorm/template_trace' into merge
Conflicts:
tornado/template.py
Ben Darnell [Thu, 1 Dec 2011 06:59:09 +0000 (22:59 -0800)]
Our tests don't work with the recently-released Twisted 11.1.0, so pin
the tests to 11.0.0 until we figure out what's going on.
bdarnell [Sat, 26 Nov 2011 20:42:19 +0000 (12:42 -0800)]
Merge pull request #403 from jparise/log-levels
Mention the 'debug' level in --logging's help.
Ben Darnell [Sat, 26 Nov 2011 20:32:22 +0000 (12:32 -0800)]
Merge commit '
7d32d64 ' into merge
Jon Parise [Sat, 26 Nov 2011 16:21:04 +0000 (11:21 -0500)]
Mention the 'debug' level in --logging's help.
There are a number of places in the Tornado code base where log
messages are logged at the logging.DEBUG level. It's useful to
advertise this here.
MinRK [Tue, 22 Nov 2011 23:48:46 +0000 (15:48 -0800)]
use '%s' formatting instead of '%d' for fds in IOLoop log messages
In case some poller implementations accept sockets or values other than
integer file descriptors, this prevents tornado's log messages from
raising errors.
MinRK [Tue, 22 Nov 2011 23:46:19 +0000 (15:46 -0800)]
fix milliseconds -> seconds typo
in ioloop, a variable was called milliseconds, but its units were seconds,
which is confusing.
Thomas Miedema [Tue, 22 Nov 2011 10:15:44 +0000 (11:15 +0100)]
Fix _reseed_random when os.urandom is not implemented
bdarnell [Mon, 14 Nov 2011 06:52:36 +0000 (22:52 -0800)]
Merge pull request #396 from justinrosenthal/master
Prevent duplicate callbacks when PeriodicCallback is stopped and restarted before _next_timeout
bdarnell [Mon, 14 Nov 2011 06:51:51 +0000 (22:51 -0800)]
Merge pull request #397 from swies/master
Invalid Cookie header crashes get_cookie
bdarnell [Mon, 14 Nov 2011 06:50:25 +0000 (22:50 -0800)]
Merge pull request #398 from phleet/patch-1
Documentation fix for AsyncTestCase
Ben Darnell [Mon, 14 Nov 2011 05:22:21 +0000 (21:22 -0800)]
Add very basic testing for app engine
Ben Darnell [Mon, 14 Nov 2011 04:15:44 +0000 (20:15 -0800)]
Thread safety for shared data structures (templates and static file hashes)
These data structures were basically safe before thanks to the GIL, but could
lead to wasted work in multithreaded environments (such as the new python2.7
app engine)
Also fixed a bug that made debug mode not invalidate static files.
Ben Darnell [Mon, 14 Nov 2011 02:07:32 +0000 (18:07 -0800)]
Add an option to the test runner to kill the process on SIGINT
instead of raising an exception.
This makes it easier to work with tests that get into uninterruptible
states (such as threading.Lock deadlocks)
Jamie Wong [Sun, 13 Nov 2011 06:56:52 +0000 (22:56 -0800)]
Documentation fix for AsyncTestCase
Ben Darnell [Sat, 12 Nov 2011 04:35:26 +0000 (20:35 -0800)]
Local copy of sphix coverage plugin is no longer needed in version 1.1
Patrick Swieskowski [Sun, 6 Nov 2011 16:56:00 +0000 (08:56 -0800)]
fix crash on invalid Cookie header
Justin Rosenthal [Fri, 4 Nov 2011 06:31:49 +0000 (23:31 -0700)]
Prevent duplicate callbacks when PeriodicCallback is stopped and restarted before _next_timeout
Luca Wehrstedt [Sun, 30 Oct 2011 16:37:29 +0000 (17:37 +0100)]
Add Etag header on HEAD requests for StaticFileHandler.
Luca Wehrstedt [Sat, 29 Oct 2011 22:15:19 +0000 (01:15 +0300)]
Add Content-Length header on HEAD requests for StaticFileHandler.
David Koblas [Tue, 25 Oct 2011 22:24:41 +0000 (15:24 -0700)]
Use a AND instead of an OR to determine if the bits are set on the event
mask. Also, handle some basic error cases in the event bits and twisted
callback.
Ben Darnell [Tue, 25 Oct 2011 17:50:22 +0000 (10:50 -0700)]
Add return statements missing from HEAD/204 fix
Ben Darnell [Tue, 25 Oct 2011 05:02:15 +0000 (22:02 -0700)]
Fix zero-byte writes in IOStream.
Previously zero-byte writes would cause the CPU to run at 100% and
would never call their callback (if any).
Aaron Morton [Mon, 24 Oct 2011 10:38:54 +0000 (23:38 +1300)]
Clear Content-Encoding and Transfer-Encoding
Also better test names.
Ben Darnell [Sun, 23 Oct 2011 21:43:20 +0000 (14:43 -0700)]
Fix hang on HEAD requests and on 204/304 responses with no content-length.
Closes #386.
Ben Darnell [Sun, 23 Oct 2011 20:39:19 +0000 (13:39 -0700)]
Sigh... More websocket protocol changes.
Closes #385.
Guto Maia [Fri, 7 Oct 2011 19:21:10 +0000 (16:21 -0300)]
allows the TwitterMixin define the callback_uri, that solves issue #377
Ben Darnell [Fri, 7 Oct 2011 08:06:01 +0000 (01:06 -0700)]
Add configs for testing on Vagrant-managed VMs.
Ben Darnell [Fri, 7 Oct 2011 08:07:58 +0000 (01:07 -0700)]
Bump version number in the master branch
Ben Darnell [Tue, 4 Oct 2011 16:59:49 +0000 (09:59 -0700)]
Set version number to 2.1.1
Ben Darnell [Tue, 4 Oct 2011 16:50:47 +0000 (09:50 -0700)]
Add release notes for 2.1.1
Ben Darnell [Tue, 4 Oct 2011 15:54:38 +0000 (08:54 -0700)]
Always advance _next_timeout in PeriodicCallback._schedule_next().
On fast machines (and platforms where time.time() has low resolution),
it's possible to make it through an IOLoop iteration with time.time()
unchanged, which would cause the callback to be run multiple times
regardless of the requested interval.
Closes #366.
David Galeano [Tue, 4 Oct 2011 12:09:15 +0000 (13:09 +0100)]
Added support for subprotocols.
bdarnell [Tue, 4 Oct 2011 05:45:18 +0000 (22:45 -0700)]
Merge pull request #372 from WGH-/patch-1
tornado/iostream.py - long type in read_bytes