]>
git.ipfire.org Git - thirdparty/tornado.git/log
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.
Ben Darnell [Sat, 25 May 2013 22:31:20 +0000 (18:31 -0400)]
Re-add a missing abspath call.
This is needed when __file__ is not absolute.
Ben Darnell [Sat, 25 May 2013 22:20:01 +0000 (18:20 -0400)]
Avoid references to self.settings in StaticFileHandler instance methods.
This fixes support for secondary StaticFileHandlers configured separately
from the default static_path.
Changed the interfaces of some new-to-3.1 methods to avoid passing in
settings to class methods used in both class and instance contexts.
Closes #796.
Ben Darnell [Sat, 25 May 2013 21:51:46 +0000 (17:51 -0400)]
Merge remote-tracking branch 'wolever/fix-staticfile-serving' into merge
Conflicts:
tornado/test/web_test.py
Ben Darnell [Sat, 25 May 2013 19:26:37 +0000 (15:26 -0400)]
Use remove and add instead of update_handler in curl_httpclient.
Curl sometimes fails to tell us that it has closed a socket
and reopened a new one with the same file descriptor, leading
to problems in some IOLoops. This should fix the recurring problem
of update_handler errors in various less-common use cases.
Closes #801.
Closes #538.
Ben Darnell [Sat, 25 May 2013 19:02:08 +0000 (15:02 -0400)]
Add a test for digest auth in curl_httpclient.
I wrote this to test for a file descriptor bug, but can't reproduce it
on my system.
Ben Darnell [Sat, 25 May 2013 00:36:31 +0000 (20:36 -0400)]
Improve error messages bytes/unicode conversion functions.
Ben Darnell [Fri, 24 May 2013 04:41:23 +0000 (00:41 -0400)]
Revert change to use time.strftime (from 3.0).
time.strftime is influenced by the user's locale (if one is set with
locale.setlocale), so it's not what we want. Go back to the (slower)
email.utils functions.
Fixes #800.
Ben Darnell [Fri, 24 May 2013 04:19:46 +0000 (00:19 -0400)]
Add py27-docs to tox envlist.
Ben Darnell [Fri, 24 May 2013 03:57:30 +0000 (23:57 -0400)]
Backport changes from ssl.match_hostname in Python 3.3.
Includes two commits:
* Fix potential CPU DoS via abusive wildcard pattern
http://hg.python.org/cpython/rev/
fafd33db6ff6
* Fall back to common name when SAN doesn't contain any DNS names
http://hg.python.org/cpython/rev/
1b37827984ba
Closes #799.
Ben Darnell [Fri, 24 May 2013 03:52:19 +0000 (23:52 -0400)]
Fix regression in async prepare: don't continue of prepare called finish.
Ben Darnell [Fri, 24 May 2013 03:12:05 +0000 (23:12 -0400)]
$TMPDIR isn't set on travis-ci.
Ben Darnell [Fri, 24 May 2013 03:02:37 +0000 (23:02 -0400)]
Actually install sphinx on travis; fix directory reference.
Ben Darnell [Fri, 24 May 2013 02:57:27 +0000 (22:57 -0400)]
Fix a dangling doc reference, and add a doc check to tox and travis.
cloudaice [Wed, 22 May 2013 17:55:23 +0000 (19:55 +0200)]
fixed bugs
bdarnell [Fri, 24 May 2013 02:36:43 +0000 (19:36 -0700)]
Merge pull request #789 from ajdavis/opts-enhancements
Make options instance more dict-like.
A. Jesse Jiryu Davis [Thu, 23 May 2013 21:06:35 +0000 (17:06 -0400)]
OptionParser.group_dict() now requires a group. Add as_dict().
David Wolever [Tue, 21 May 2013 21:06:53 +0000 (17:06 -0400)]
Test revealing StaticFileHandler path regression.
A bisect suggests that the regression was introduced in
3f04edf5546e388293d8d1d2f015ca74f8a93217
bdarnell [Tue, 21 May 2013 05:06:19 +0000 (22:06 -0700)]
Merge pull request #794 from wolever/accept-range-in-static-file-handler
Send HTTP 200 in response to `Range: bytes=0-`
David Wolever [Tue, 21 May 2013 04:47:15 +0000 (00:47 -0400)]
Only send Content-Range with HTTP 206
David Wolever [Tue, 21 May 2013 04:40:50 +0000 (00:40 -0400)]
Note about conditional return of HTTP 206
David Wolever [Tue, 21 May 2013 04:37:35 +0000 (00:37 -0400)]
Merge master
David Wolever [Tue, 21 May 2013 04:14:46 +0000 (00:14 -0400)]
Send HTTP 200 in response to Range: bytes=0-
Serge S. Koval [Mon, 20 May 2013 11:43:12 +0000 (14:43 +0300)]
Parameter is no longer necessary
Serge S. Koval [Mon, 20 May 2013 11:35:21 +0000 (14:35 +0300)]
Unnecessary import removed
Serge S. Koval [Mon, 20 May 2013 11:34:19 +0000 (14:34 +0300)]
stack_context deactivation support
Ben Darnell [Mon, 20 May 2013 03:19:53 +0000 (23:19 -0400)]
Release note updates.
Ben Darnell [Sun, 19 May 2013 18:23:17 +0000 (14:23 -0400)]
Read static files in 64-KB chunks.
Based on #526, but updated for the new interfaces in StaticFileHandler.
Unlike #526, this change does not actually wait for each chunk to be
flushed before reading the next one. Flushing raises some additional
complications (wsgi compatibility, chunked encoding vs content-length)
that are probably not worthwhile for the intended use of StaticFileHandler.
Reading in chunks has benefits even if we don't wait for the flush
(i.e. memory fragmentation), and this change establishes the necessary
subclass interfaces so we can add flushing in the future.
Ben Darnell [Sun, 19 May 2013 17:57:31 +0000 (13:57 -0400)]
Add start and end parameters to get_content() instead of reading everything.
Ben Darnell [Sun, 19 May 2013 17:18:53 +0000 (13:18 -0400)]
Make static_url pass arbitrary kwargs to make_static_url.
The include_version argument to make_static_url is no longer mandatory
in subclasses.
Ben Darnell [Sun, 19 May 2013 17:11:53 +0000 (13:11 -0400)]
Merge remote-tracking branch 'birknilson/static_version_override' into merge
Conflicts:
tornado/test/web_test.py
Ben Darnell [Sun, 19 May 2013 16:41:12 +0000 (12:41 -0400)]
Add method StaticFileHandler.get_content_version.
This method is easier for subclasses to override (the base class still
handles caching) and lets us use the post-validation absolute path,
fixing some issues with default_filename support.
Improve StaticFileHandler test coverage.
Ben Darnell [Sun, 19 May 2013 16:02:03 +0000 (12:02 -0400)]
Add back a lost call to abspath (which may or may not cause test failures
depending on how they were run).
Ben Darnell [Sun, 19 May 2013 15:53:43 +0000 (11:53 -0400)]
Document recent additions to StaticFileHandler.
Make httputil's range functions private.
Ben Darnell [Sun, 19 May 2013 14:55:13 +0000 (10:55 -0400)]
Cleanups after the big StaticFileHandler merge.
Some reshuffling of logic between class and instance methods.
Ben Darnell [Sun, 19 May 2013 04:18:08 +0000 (00:18 -0400)]
Rough merge of the birknilson and wolever StaticFileHandler branches.
Some of Birk's new methods become classmethods so they can be used
in get_version.
This silences the warning logged in CustomStaticFileTest.
Ben Darnell [Sun, 19 May 2013 03:59:00 +0000 (23:59 -0400)]
Merge remote-tracking branch 'birknilson/refactoring/reduce_statichandler_complexity' into merge
Conflicts:
tornado/web.py
Ben Darnell [Sun, 19 May 2013 03:50:19 +0000 (23:50 -0400)]
Merge remote-tracking branch 'wolever/accept-range-in-static-file-handler' into merge
Ben Darnell [Sat, 18 May 2013 23:58:18 +0000 (19:58 -0400)]
Update redbot tests to work with current versions of redbot.
David Wolever [Sat, 18 May 2013 20:36:37 +0000 (16:36 -0400)]
206 in response to Range, refactor ETag checking
Ben Darnell [Sat, 18 May 2013 20:34:10 +0000 (16:34 -0400)]
Add PATCH and OPTIONS support by default to curl_httpclient.
Add some tests to cover all the standard (and non-standard) http methods.
Closes #792.
Ben Darnell [Sat, 18 May 2013 20:03:45 +0000 (16:03 -0400)]
Remove redundant call to find_named_blocks in template processing.
self._get_ancestors already returns self.file in the appropriate position.
Closes #791.
David Wolever [Sat, 18 May 2013 20:00:06 +0000 (16:00 -0400)]
Fixing errant paren, missing format value
David Wolever [Sat, 18 May 2013 19:30:41 +0000 (15:30 -0400)]
Return HTTP 416 Range Not Satisfiable, not 406
A. Jesse Jiryu Davis [Fri, 17 May 2013 16:01:22 +0000 (12:01 -0400)]
Replace options.as_dict() with group_dict()
A. Jesse Jiryu Davis [Fri, 17 May 2013 13:49:05 +0000 (09:49 -0400)]
options[key] should return a value, not an _Option instance