]>
git.ipfire.org Git - thirdparty/tornado.git/log
Juraj Niznan [Wed, 4 Sep 2013 13:36:00 +0000 (15:36 +0200)]
possibility to disable autoreload when debug is on
Ben Darnell [Sun, 1 Sep 2013 18:37:40 +0000 (14:37 -0400)]
Merge branch 'branch3.1'
Conflicts:
docs/releases.rst
setup.py
tornado/__init__.py
Ben Darnell [Sun, 1 Sep 2013 18:21:36 +0000 (14:21 -0400)]
Set version number to 3.1.1
Ben Darnell [Sun, 1 Sep 2013 18:20:03 +0000 (14:20 -0400)]
Add 3.1.1 release notes.
Ben Darnell [Sun, 4 Aug 2013 22:10:21 +0000 (18:10 -0400)]
RequestHandler sets its close callback on the HTTPConnection, not the IOStream.
Fixes a bug in which close callbacks would never be called for subsequent
requests on a reused connection.
Ben Darnell [Thu, 11 Jul 2013 18:00:37 +0000 (14:00 -0400)]
Fix exception in StaticFileHandler when range requested is larger than file.
Ben Darnell [Thu, 29 Aug 2013 21:32:49 +0000 (17:32 -0400)]
Bump verison number to 3.2.dev2
Ben Darnell [Sun, 25 Aug 2013 02:06:00 +0000 (22:06 -0400)]
Check for empty strings and zero bytes in is_valid_ip.
Closes #893.
bdarnell [Fri, 23 Aug 2013 01:03:24 +0000 (18:03 -0700)]
Merge pull request #889 from pabelanger/temp/license
Add top level LICENSE file
Paul Belanger [Thu, 22 Aug 2013 23:28:35 +0000 (19:28 -0400)]
Add top level LICENSE file
Simlpe commit to add the Apache License, Version 2.0 to the top level
directory.
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Ben Darnell [Mon, 19 Aug 2013 03:54:59 +0000 (23:54 -0400)]
In add_callback, hold the lock while writing to the waker pipe.
This protects against a shutdown race condition seen occasionally in
the ThreadedResolver unittests. This slightly increases contention
on the callback lock in multi-threaded scenarios, but the cost is
limited by the fact that we only write to the pipe once per IOLoop
iteration.
Closes #875.
Ben Darnell [Sun, 18 Aug 2013 23:24:14 +0000 (19:24 -0400)]
Add a distinct exception for writing a WebSocket message on a closed connection.
This replaces an AttributeError on NoneType.
Closes #879.
Ben Darnell [Sun, 18 Aug 2013 23:20:48 +0000 (19:20 -0400)]
Document the fact that the {% module %} directive requires a RequestHandler.
Closes #880.
Ben Darnell [Sun, 18 Aug 2013 23:17:15 +0000 (19:17 -0400)]
Emphasize and clarify docs for AsyncHTTPClient.close.
Ben Darnell [Sun, 18 Aug 2013 23:12:07 +0000 (19:12 -0400)]
Document Windows support (or lack thereof).
Closes #871.
Ben Darnell [Tue, 13 Aug 2013 04:02:34 +0000 (00:02 -0400)]
Update next-release notes.
Ben Darnell [Tue, 13 Aug 2013 03:52:30 +0000 (23:52 -0400)]
Add comments for domain and path arguments to cookie-clearing methods.
bdarnell [Tue, 13 Aug 2013 03:47:39 +0000 (20:47 -0700)]
Merge pull request #874 from skazhy/clear-all-cookies-custom-domain
Allow deleting all cookies on custom domains
Ben Darnell [Tue, 13 Aug 2013 03:34:00 +0000 (23:34 -0400)]
Update ca-certificates.crt to the current Mozilla version.
This file was generated by downloading
https://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1
in a web browser to avoid the chicken-and-egg problem with mk-ca-bundle's
built-in downloading, and then running "mk-ca-bundle.pl -n".
Note that we were not affected by the recently-fixed curl bug
(https://github.com/bagder/curl/commit/
51f0b798fa ), but only because
it had been so long since we had updated this file.
Karlis Lauva [Fri, 9 Aug 2013 10:43:20 +0000 (13:43 +0300)]
Allow deleting all cookies on custom domains
Ben Darnell [Sun, 4 Aug 2013 22:35:50 +0000 (18:35 -0400)]
Less crude fix for #855: only do anything for already-connected sockets.
Ben Darnell [Sun, 4 Aug 2013 22:33:37 +0000 (18:33 -0400)]
Merge remote-tracking branch 'pitrou/issue855-ssl-auto-handshake'
Ben Darnell [Sun, 4 Aug 2013 22:10:21 +0000 (18:10 -0400)]
RequestHandler sets its close callback on the HTTPConnection, not the IOStream.
Fixes a bug in which close callbacks would never be called for subsequent
requests on a reused connection.
Ben Darnell [Sun, 4 Aug 2013 22:08:01 +0000 (18:08 -0400)]
Clear the IOStream buffers on close even when there is no close callback.
Closes #828. (again)
Ben Darnell [Sun, 4 Aug 2013 19:45:35 +0000 (15:45 -0400)]
Route all callback error logging in IOLoop through handle_callback_exception.
bdarnell [Sat, 20 Jul 2013 02:42:54 +0000 (19:42 -0700)]
Merge pull request #859 from schlamar/patch-1
Make poll timeout patchable.
Marc Schlaich [Fri, 19 Jul 2013 11:36:00 +0000 (13:36 +0200)]
Make poll timeout patchable.
Antoine Pitrou [Wed, 17 Jul 2013 13:09:05 +0000 (15:09 +0200)]
Crude fix for issue #855: automatically initiate SSL handshake in SSLIOStream.
Perhaps this should be exposed as an option instead?
bdarnell [Tue, 16 Jul 2013 01:10:05 +0000 (18:10 -0700)]
Merge pull request #851 from taguchimail/master
Correctly handle EAGAIN when writing to PipeIOStreams
bdarnell [Tue, 16 Jul 2013 01:04:09 +0000 (18:04 -0700)]
Merge pull request #848 from SuprDewd/issue_820
Fixed laziness of current_user in UI modules, and added tests for current_user.
Ben Dyer [Fri, 12 Jul 2013 06:35:09 +0000 (16:35 +1000)]
Correctly handle EAGAIN when writing to PipeIOStreams
BaseIOStream._handle_write needs to catch IOError and OSError as
well as socket.error in order to handle EAGAIN when writing to a
PipeIOStream (which doesn't appear to raise socket.error when the
buffer is full).
This also provides consistency with the exceptions caught by
BaseIOStream._read_to_buffer.
Ben Darnell [Thu, 11 Jul 2013 18:00:37 +0000 (14:00 -0400)]
Fix exception in StaticFileHandler when range requested is larger than file.
SuprDewd [Wed, 10 Jul 2013 00:10:34 +0000 (00:10 +0000)]
Fixed laziness of current_user in UI modules, and added tests for current_user. #820
Ben Darnell [Sun, 7 Jul 2013 17:38:08 +0000 (13:38 -0400)]
Clear the write buffer when an IOStream is closed.
Closes #828.
Ben Darnell [Sun, 7 Jul 2013 17:30:00 +0000 (13:30 -0400)]
Unify lists of errnos used in IOStream.
We generally want to treat aborted connections the same regardless of the
specific errno, but some calls caught ECONNRESET and ECONNABORTED
while others only caught ECONNRESET. Reported in #828.
Ben Darnell [Sun, 7 Jul 2013 16:29:09 +0000 (12:29 -0400)]
Start next release notes
Ben Darnell [Sun, 7 Jul 2013 16:13:52 +0000 (12:13 -0400)]
Clear the loop variable in addition to the callback list.
Closes #844.
Ben Darnell [Fri, 5 Jul 2013 17:13:40 +0000 (13:13 -0400)]
Update FacebookGraphMixin with new authorization url.
The old url still works, but results in an extra redirect.
Ben Darnell [Fri, 5 Jul 2013 17:08:44 +0000 (13:08 -0400)]
Use TracebackFuture for all internal Futures for better tracebacks on py2.x.
Ben Darnell [Fri, 5 Jul 2013 16:57:03 +0000 (12:57 -0400)]
Clear local variables in IOLoop to allow GC before we start polling.
Closes #836.
Ben Darnell [Fri, 5 Jul 2013 16:53:37 +0000 (12:53 -0400)]
Close pipe file descriptors if subprocess.Popen fails.
Closes #834.
Ben Darnell [Fri, 5 Jul 2013 16:46:49 +0000 (12:46 -0400)]
Add apostrophes to xhtml_escape.
Closes #833.
Ben Darnell [Mon, 1 Jul 2013 00:25:16 +0000 (20:25 -0400)]
Update twisted test blacklist for the newly-released 13.1.0.
bdarnell [Sun, 30 Jun 2013 23:38:44 +0000 (16:38 -0700)]
Merge pull request #831 from erkyrath/master
Fixed incorrect error message in _when_complete (#829)
Ben Darnell [Mon, 24 Jun 2013 23:39:25 +0000 (16:39 -0700)]
Fix run_with_stack_context test.
This test would never fail because it didn't check the result of its
Future. Thanks to Florian Ludwig for pointing this out.
Andrew Plotkin [Sat, 22 Jun 2013 18:03:50 +0000 (14:03 -0400)]
Fix issue 829 -- error message is displaying wrong incorrect result.
bdarnell [Tue, 18 Jun 2013 02:51:22 +0000 (19:51 -0700)]
Merge pull request #824 from GrahamDumpleton/master
WSGI specification requires that close() be called on iterable no matter what happens.
Ben Darnell [Tue, 18 Jun 2013 02:49:27 +0000 (22:49 -0400)]
Set master branch version to 3.2.dev1
Graham Dumpleton [Mon, 17 Jun 2013 05:49:42 +0000 (15:49 +1000)]
WSGI specification requires that close() be called on iterable no matter what happens.
Ben Darnell [Sat, 15 Jun 2013 18:15:54 +0000 (14:15 -0400)]
Set version to 3.1.
Ben Darnell [Sat, 15 Jun 2013 18:15:24 +0000 (14:15 -0400)]
Move next release notes to v3.1.
Ben Darnell [Sat, 15 Jun 2013 18:03:25 +0000 (14:03 -0400)]
Release note updates.
Ben Darnell [Fri, 14 Jun 2013 23:30:30 +0000 (19:30 -0400)]
Remove obsolete comment about twitter's support for callback urls.
Ben Darnell [Thu, 13 Jun 2013 16:14:52 +0000 (12:14 -0400)]
Add another small encoding test for xhtml_escape.
Ben Darnell [Wed, 12 Jun 2013 03:52:36 +0000 (23:52 -0400)]
Fix default IOLoop in Subprocess.
Exit callbacks would fail for Subprocesses that did not explicitly
set an IOLoop.
Ben Darnell [Wed, 12 Jun 2013 03:32:40 +0000 (23:32 -0400)]
Set CLOEXEC on subprocess pipe endpoints so they are not inherited by the child.
This is what the subprocess module does when it creates pipes, and is
necessary so that a close of the writing side of the stdin pipe will
be recognized by the child process.
bdarnell [Wed, 12 Jun 2013 02:16:12 +0000 (19:16 -0700)]
Merge pull request #823 from schlamar/bind-sockets-ipv6
Fix bind_sockets if OS does not support IPv6
Ben Darnell [Wed, 12 Jun 2013 02:11:49 +0000 (22:11 -0400)]
Doc updates from Zhigang Wang
schlamar [Tue, 11 Jun 2013 12:38:32 +0000 (14:38 +0200)]
Fix bind_sockets if OS does not support IPv6
bdarnell [Thu, 6 Jun 2013 13:32:07 +0000 (06:32 -0700)]
Merge pull request #819 from dominiqueplante/master
update comparison check to follow PEP8
Dominique Plante [Thu, 6 Jun 2013 06:37:13 +0000 (23:37 -0700)]
update comparison to follow pep8
Ben Darnell [Thu, 6 Jun 2013 01:57:03 +0000 (21:57 -0400)]
Document websocket error handling change (and StreamClosedError).
Ben Darnell [Thu, 6 Jun 2013 01:43:16 +0000 (21:43 -0400)]
Catch StreamClosedErrors in WebSocketHandler and abort.
When the stream is closed with buffered data, the close callback won't
be run until all buffered data is consumed, but any attempt to write
to the stream will fail, as will reading past the end of the buffer.
This requires a try/except around each read or write, analogous to the
one introduced in HTTPServer in commit
3258726f .
Closes #604.
Closes #661.
Ben Darnell [Wed, 5 Jun 2013 13:21:52 +0000 (09:21 -0400)]
Set version number to 3.1b1
Ben Darnell [Wed, 5 Jun 2013 05:00:09 +0000 (01:00 -0400)]
Release note updates
Ben Darnell [Mon, 3 Jun 2013 01:18:32 +0000 (21:18 -0400)]
gen.coroutine works with auth now so we can use it in the docs.
Ben Darnell [Mon, 3 Jun 2013 01:16:48 +0000 (21:16 -0400)]
Merge branch 'branch3.0'
Conflicts:
docs/releases.rst
setup.py
tornado/__init__.py
tornado/auth.py
Ben Darnell [Sun, 2 Jun 2013 20:27:28 +0000 (16:27 -0400)]
Version bump and release notes for 3.0.2.
Ben Darnell [Sat, 1 Jun 2013 01:49:08 +0000 (21:49 -0400)]
Update twitter base urls to use api 1.1 and HTTPS.
This is in preparation for the shutdown of version 1 of the API on
June 11.
Closes #809.
Ben Darnell [Sun, 2 Jun 2013 20:04:57 +0000 (16:04 -0400)]
Copy .gitignore update from master to branch3.0
Ben Darnell [Sat, 1 Jun 2013 21:36:20 +0000 (17:36 -0400)]
Restore a recently-removed ExpectLog in simple_httpclient_test.
Some IOLoops still log warnings when a connection is refused.
Ben Darnell [Sat, 1 Jun 2013 21:30:33 +0000 (17:30 -0400)]
Reuse a single ThreadPoolExecutor for all ThreadedResolvers.
The primary motivation is that shutting down a ThreadPoolExecutor takes
100ms in the 2.x backported version of concurrent.futures. It's also
generally unnecessary to create lots of DNS resolver threads just
because multiple resolver objects are used.
Document ExecutorResolver for public use.
Ben Darnell [Sat, 1 Jun 2013 02:34:54 +0000 (22:34 -0400)]
Fix tests broken by move to verify_credentials
Ben Darnell [Sat, 1 Jun 2013 02:27:02 +0000 (22:27 -0400)]
Get the current user's twitter information with /account/verify_credentials.
This is more robust against potentially-changing screen names.
Closes #51.
Ben Darnell [Sat, 1 Jun 2013 01:49:08 +0000 (21:49 -0400)]
Update twitter base urls to use api 1.1 and HTTPS.
This is in preparation for the shutdown of version 1 of the API on
June 11.
Closes #809.
Ben Darnell [Sat, 1 Jun 2013 01:46:53 +0000 (21:46 -0400)]
Add a simple end-to-end demo of TwitterMixin.
Ben Darnell [Sat, 1 Jun 2013 00:45:42 +0000 (20:45 -0400)]
Make the auth*_redirect methods all return Futures.
The OAuth 1.0 authorize_redirect is asynchronous, but this is not obvious
since it doesn't take a callback and instead just calls self.finish.
This fails in coroutines because the request will be auto-finished too soon.
Add Future returns to this method, and to all the rest for consistency.
Update docs and add tests for the various styles of login handlers.
Ben Darnell [Sat, 1 Jun 2013 00:03:02 +0000 (20:03 -0400)]
Doc patch for 3.0: replace @gen.coroutine with @gen.engine.
The oauth 1.0 redirect methods are asynchronous even though they don't
take a callback, so we don't want the end of the coroutine to trigger
a call to self.finish.
bdarnell [Fri, 31 May 2013 23:32:22 +0000 (16:32 -0700)]
Merge pull request #817 from ysimonson/feature/no-body-in-logs
Hide request body on error dump
Ben Darnell [Fri, 31 May 2013 23:30:37 +0000 (19:30 -0400)]
Remove logging of uncaught exceptions from SimpleAsyncHTTPClient.
This logging was basically redundant since the exception is still
made available to the caller through the response's error object.
Closes #815.
Yusuf Simonson [Fri, 31 May 2013 18:05:57 +0000 (14:05 -0400)]
Do not include body in HTTPRequest's __repr__
bdarnell [Thu, 30 May 2013 14:18:43 +0000 (07:18 -0700)]
Merge pull request #808 from wolever/standards-complient-range
Edge cases of Range header are standards compliant
David Wolever [Wed, 29 May 2013 19:04:15 +0000 (15:04 -0400)]
Edge cases of Range header are standards compliant
Fix a few Range header edge cases to ensure that it is as
standards-compliant as possible.
David Wolever [Wed, 29 May 2013 18:37:51 +0000 (14:37 -0400)]
Return a valid Content-Range header
Ben Darnell [Mon, 27 May 2013 22:01:08 +0000 (18:01 -0400)]
Add versionadded tags throughout the docs.
Ben Darnell [Mon, 27 May 2013 21:18:38 +0000 (17:18 -0400)]
Autopep8 fixes.
Ben Darnell [Mon, 27 May 2013 21:15:24 +0000 (17:15 -0400)]
Update autopep8 blacklist
Ben Darnell [Mon, 27 May 2013 21:15:12 +0000 (17:15 -0400)]
Update development dependency versions.
Ben Darnell [Mon, 27 May 2013 19:34:35 +0000 (15:34 -0400)]
Remove unused imports identified by pyflakes.
Ben Darnell [Mon, 27 May 2013 19:29:07 +0000 (15:29 -0400)]
Fix exception name in backported ssl fix.
Ben Darnell [Mon, 27 May 2013 19:19:04 +0000 (15:19 -0400)]
Add an overridable attribute FacebookGraphMixin._FACEBOOK_BASE_URL.
Closes #241.
bdarnell [Mon, 27 May 2013 16:02:38 +0000 (09:02 -0700)]
Merge pull request #805 from chinyue/master
Add check in case email.utils.parsedate failed
Chinyue Chen [Mon, 27 May 2013 03:57:26 +0000 (11:57 +0800)]
Add check in case parsedate failed.
email.utils.parsedate returns None if failed to parse date, add a check
to handle that.
Ben Darnell [Mon, 27 May 2013 01:54:07 +0000 (21:54 -0400)]
Use py26-compatible syntax in tests.
Ben Darnell [Sun, 26 May 2013 21:50:09 +0000 (17:50 -0400)]
Fix an exception when the outermost stack_context is deactivated.
Add more tests for deactivation in various scenarios.
Ben Darnell [Sun, 26 May 2013 18:15:12 +0000 (14:15 -0400)]
Add a stack_context benchmark.
Ben Darnell [Sun, 26 May 2013 16:44:00 +0000 (12:44 -0400)]
Merge remote-tracking branch 'mrjoes/master' into merge
Ben Darnell [Sat, 25 May 2013 23:15:24 +0000 (19:15 -0400)]
Organize release notes by module
Ben Darnell [Sat, 25 May 2013 22:48:30 +0000 (18:48 -0400)]
Update release notes
Ben Darnell [Sat, 25 May 2013 22:38:11 +0000 (18:38 -0400)]
Remove a seemingly unneded timeout that made this test timing-sensitive.