]>
git.ipfire.org Git - thirdparty/tornado.git/log
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
David Wolever [Fri, 17 May 2013 04:34:36 +0000 (00:34 -0400)]
Handle negative byte ranges
David Wolever [Fri, 17 May 2013 04:11:40 +0000 (00:11 -0400)]
Tests for Range header
David Wolever [Fri, 17 May 2013 04:11:22 +0000 (00:11 -0400)]
Set Accept-Range header, return 406 on invalid range
Ben Darnell [Fri, 17 May 2013 04:08:33 +0000 (00:08 -0400)]
Merge branch 'branch3.0'
Ben Darnell [Fri, 17 May 2013 04:07:25 +0000 (00:07 -0400)]
Dereference the current YieldPoint as soon as it resolves.
These references could otherwise keep a chain of old references alive
(test code: https://groups.google.com/group/python-tornado/browse_thread/thread/
37d3928817e4924d )
David Wolever [Fri, 17 May 2013 03:59:30 +0000 (23:59 -0400)]
Fix bytes/str issues
Ben Darnell [Fri, 17 May 2013 02:56:14 +0000 (22:56 -0400)]
Add test for option redefinition error.
David Wolever [Thu, 16 May 2013 23:37:30 +0000 (19:37 -0400)]
(incomplete) Honnoring Range request header
David Wolever [Thu, 16 May 2013 22:45:06 +0000 (18:45 -0400)]
Use 'get_version' to calculate static file hashes.
A. Jesse Jiryu Davis [Thu, 16 May 2013 18:14:27 +0000 (14:14 -0400)]
Make options instance more dict-like.
cloudaice [Thu, 16 May 2013 09:06:41 +0000 (11:06 +0200)]
comparison to None should be 'if cond is not None'
cloudaice [Thu, 16 May 2013 08:54:37 +0000 (10:54 +0200)]
fixed bug when raise error in options
项超 [Thu, 16 May 2013 08:44:45 +0000 (01:44 -0700)]
Merge pull request #1 from facebook/master
merge master from facebook tornado
Ben Darnell [Thu, 16 May 2013 02:47:35 +0000 (22:47 -0400)]
Add a close method to Resolver and use it where necessary.
This fixes a thread leak when running the test suite with
ThreadedResolver.
Ben Darnell [Thu, 16 May 2013 01:44:34 +0000 (21:44 -0400)]
Add a missing stack_context.wrap in SSLIOStream.connect.
Run some of simple_httpclient test in both HTTP and HTTPS modes, which
would have detected this bug.
Closes #787.
Ben Darnell [Mon, 13 May 2013 04:49:16 +0000 (00:49 -0400)]
Release note updates
Ben Darnell [Mon, 13 May 2013 04:08:04 +0000 (00:08 -0400)]
Remove whitespace/control-character check from RequestHandler.redirect.
Control characters (and newlines and tabs) will be caught in
set_header (which will raise an exception instead of silently
stripping them). Spaces will now be allowed through, producing
invalid urls, but at least they won't mess up the header framing.
Closes #617.
Ben Darnell [Mon, 13 May 2013 03:32:24 +0000 (23:32 -0400)]
Clean up cancelled timeout handles when the queue gets full of them.
Based on a patch by Giampaolo Radola:
https://github.com/facebook/tornado/issues/408
Closes #408.
Ben Darnell [Mon, 13 May 2013 00:26:44 +0000 (20:26 -0400)]
Respect HTTPServer's no_keep_alive option in RequestHandler.clear.
Also make the keep-alive header check case-insensitive for consistency
with the corresponding code in HTTPServer.
Fixes #31.
Ben Darnell [Mon, 13 May 2013 00:02:54 +0000 (20:02 -0400)]
Allow handlers to assign to self.current_user
Ben Darnell [Sun, 12 May 2013 23:34:12 +0000 (19:34 -0400)]
Allow prepare to be asynchronous, and detect coroutines by their result.
The prepare method does not use the @asynchronous decorator, only
@gen.coroutine (or @return_future; it detects the Future return type).
The same logic is now available for the regular http verb methods as well.
Closes #605.
Ben Darnell [Sun, 12 May 2013 23:32:20 +0000 (19:32 -0400)]
Don't try sending another error response in _handle_request_exception
if the stack context catches an error after the request is done.
(this may be related to the error discussed in the comments of #751)
Ben Darnell [Sun, 12 May 2013 22:08:23 +0000 (18:08 -0400)]
Release note and doc updates
bdarnell [Sun, 12 May 2013 20:36:56 +0000 (13:36 -0700)]
Merge pull request #748 from wsantos/fix732
Add max_buffer_size argument to TCPServer's constructor
Ben Darnell [Sun, 12 May 2013 20:24:19 +0000 (16:24 -0400)]
Check for ECONNRESET in addition to EPIPE on send().
ECONNRESET appears to be the error code used here on Windows.
Closes #757.
Closes #758.
bdarnell [Sun, 12 May 2013 20:16:13 +0000 (13:16 -0700)]
Merge pull request #784 from tahajahangir/patch-1
Don't log EPIPE (broken pipe) errors as warnings
Ben Darnell [Sun, 12 May 2013 20:12:27 +0000 (16:12 -0400)]
Use plus=False when constructing and decoding url paths.
Ben Darnell [Sun, 12 May 2013 19:48:52 +0000 (15:48 -0400)]
Add a 'plus' argument to url_{un,}escape, defaulting to True.
Closes #25.
Taha Jahangir [Sun, 12 May 2013 18:16:13 +0000 (22:46 +0430)]
Don't log EPIPE (broken pipe) errors as warnings
Broken pipe errors are usually caused by connection reset, and its better to not log EPIPE errors to minimize log spam
Ben Darnell [Sun, 12 May 2013 17:17:20 +0000 (13:17 -0400)]
Add a run_with_stack_context function to more easily use stack contexts in coroutines.
Ben Darnell [Sun, 12 May 2013 16:47:27 +0000 (12:47 -0400)]
Add a distinct MissingArgumentError class for get_argument.
Closes #782.
Ben Darnell [Sun, 12 May 2013 16:37:11 +0000 (12:37 -0400)]
Move _UIModuleNamespace from the top of web.py to the UIModule implementation.
bdarnell [Sat, 11 May 2013 01:45:33 +0000 (18:45 -0700)]
Merge pull request #783 from gwk/master
Add note about handler regex capture to StaticFileHandler documentation.
gwk [Fri, 10 May 2013 21:32:28 +0000 (17:32 -0400)]
Added note regarding regex group capture to StaticFileHandler docs.
bdarnell [Thu, 9 May 2013 03:47:57 +0000 (20:47 -0700)]
Merge pull request #777 from mauriciosl/master
bind_unused_port raising gaierror: [Errno 8]
Ben Darnell [Thu, 9 May 2013 02:40:27 +0000 (22:40 -0400)]
Add note about frequently-seen pull request to add **kwargs to json_encode.
bdarnell [Wed, 8 May 2013 04:31:46 +0000 (21:31 -0700)]
Merge pull request #780 from keakon/patch-1
add missing parameter doc