]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
12 years agouse getattr to check for close method in IOLoop.close 735/head
MinRK [Tue, 16 Apr 2013 01:12:48 +0000 (18:12 -0700)] 
use getattr to check for close method in IOLoop.close

instead of catching AttributeError directly

12 years agotry close method to close FDs in IOLoop
MinRK [Mon, 15 Apr 2013 18:36:58 +0000 (11:36 -0700)] 
try close method to close FDs in IOLoop

If an object has a `close` method, use that first,
then fallback on `os.close`.

This is useful in subclasses that support polling things (zmq sockets, specifically)
that are not simple FDs (and Jython, I hear?).

12 years agoStart a new next-release-notes file
Ben Darnell [Sun, 14 Apr 2013 21:03:46 +0000 (17:03 -0400)] 
Start a new next-release-notes file

12 years agoFix the import_object ImportError on Python 3.
Ben Darnell [Sun, 14 Apr 2013 20:07:40 +0000 (16:07 -0400)] 
Fix the import_object ImportError on Python 3.

Python 3 also changed exception messages slightly so remove one case
from the doctest.

12 years agoMerge remote-tracking branch 'kachayev/import-object'
Ben Darnell [Sun, 14 Apr 2013 20:03:08 +0000 (16:03 -0400)] 
Merge remote-tracking branch 'kachayev/import-object'

12 years agoBreak up a reference cycle with RequestHandler.ui when handler exits cleanly.
Ben Darnell [Sun, 14 Apr 2013 19:58:02 +0000 (15:58 -0400)] 
Break up a reference cycle with RequestHandler.ui when handler exits cleanly.

This is not strictly necessary, but allows for CPython's refcounting
GC to reclaim the handler sooner than waiting for a full GC.

Closes #383.

12 years agoBreak reference cycle between WebSocketHandler and WebSocketProtocol on close.
Ben Darnell [Sun, 14 Apr 2013 19:42:24 +0000 (15:42 -0400)] 
Break reference cycle between WebSocketHandler and WebSocketProtocol on close.

This isn't strictly necessary, but it allows the refcounting CPython GC
to clean things up without waiting for a full GC.

Closes #382.

12 years agoAlways send oauth_version=1.0, even when using 1.0a.
Ben Darnell [Sun, 14 Apr 2013 19:31:50 +0000 (15:31 -0400)] 
Always send oauth_version=1.0, even when using 1.0a.

This is required by the spec (http://oauth.net/core/1.0/#auth_step1).
Many providers (including Google and Twitter) allow a value of either
1.0 or 1.0a here, but e.g. LinkedIn requires 1.0.

Closes #236.

12 years agoAdd link to PDF docs.
Ben Darnell [Sun, 14 Apr 2013 17:58:55 +0000 (13:58 -0400)] 
Add link to PDF docs.

12 years agoMerge commit '0771f'
Ben Darnell [Sun, 14 Apr 2013 00:39:24 +0000 (20:39 -0400)] 
Merge commit '0771f'

12 years agoHandle malformed headers more gracefully.
Ben Darnell [Sun, 14 Apr 2013 00:35:24 +0000 (20:35 -0400)] 
Handle malformed headers more gracefully.

Closes #699.

12 years agoMerge pull request #693 from apieceofredcloth/master
bdarnell [Sun, 14 Apr 2013 00:15:11 +0000 (17:15 -0700)] 
Merge pull request #693 from apieceofredcloth/master

Allow lists as well as tuples in handler definitions

12 years agoDocument the fact that auth_mode="digest" only works with curl.
Ben Darnell [Sat, 13 Apr 2013 23:35:39 +0000 (19:35 -0400)] 
Document the fact that auth_mode="digest" only works with curl.

Add check in simple_httpclient that only basic mode is used.

12 years agoMerge pull request #700 from icaromedeiros/master
bdarnell [Sat, 13 Apr 2013 23:21:03 +0000 (16:21 -0700)] 
Merge pull request #700 from icaromedeiros/master

Digest authentication for curl_httpclient

12 years agoMerge remote-tracking branch 'mrjoes/perf'
Ben Darnell [Sat, 13 Apr 2013 22:22:16 +0000 (18:22 -0400)] 
Merge remote-tracking branch 'mrjoes/perf'

12 years agoParse if-modified-since timestamps without going through time_t or local time.
Ben Darnell [Sat, 13 Apr 2013 22:15:49 +0000 (18:15 -0400)] 
Parse if-modified-since timestamps without going through time_t or local time.

This fixes a bug on windows in which mktime cannot work with times before
the epoch.

Closes #713.

12 years ago_handle_exception in testing.py ignores passed exception 727/head
Serge S. Koval [Sat, 13 Apr 2013 21:28:36 +0000 (00:28 +0300)] 
_handle_exception in testing.py ignores passed exception

12 years agoIgnore negative return values from CurlMulti.timeout.
Ben Darnell [Sat, 13 Apr 2013 21:20:07 +0000 (17:20 -0400)] 
Ignore negative return values from CurlMulti.timeout.

pycurl has a wraparound bug that can turn very large timeouts into
negative numbers.

Closes #712.

12 years agoDon't use range for performance reasons
Serge S. Koval [Sat, 13 Apr 2013 21:02:49 +0000 (00:02 +0300)] 
Don't use range for performance reasons

12 years agoUse range instead of xrange
Serge S. Koval [Sat, 13 Apr 2013 21:00:27 +0000 (00:00 +0300)] 
Use range instead of xrange

12 years agoFix escaping error in blog demo
Ben Darnell [Sat, 13 Apr 2013 20:39:58 +0000 (16:39 -0400)] 
Fix escaping error in blog demo

Closes #726.

12 years agoComparison fix
Serge S. Koval [Sat, 13 Apr 2013 20:12:37 +0000 (23:12 +0300)] 
Comparison fix

12 years agoOptimized StackContext implementation
Serge S. Koval [Sat, 13 Apr 2013 20:09:50 +0000 (23:09 +0300)] 
Optimized StackContext implementation

12 years agoBump version number in the master branch
Ben Darnell [Fri, 12 Apr 2013 14:15:21 +0000 (10:15 -0400)] 
Bump version number in the master branch

12 years agoRe-add google webmaster tools site verification code.
Ben Darnell [Thu, 11 Apr 2013 03:53:58 +0000 (23:53 -0400)] 
Re-add google webmaster tools site verification code.

12 years agoSet version number to 3.0.1 v3.0.1
Ben Darnell [Tue, 9 Apr 2013 03:26:51 +0000 (23:26 -0400)] 
Set version number to 3.0.1

12 years agoMake the websocket_connect error handling more comprehensive.
Ben Darnell [Tue, 9 Apr 2013 03:11:08 +0000 (23:11 -0400)] 
Make the websocket_connect error handling more comprehensive.

Now covers successful http responses that return a non-websocket body
and network errors that prevent a body from being returned.

Added a connect_timeout parameter to websocket_connect.

12 years agoMerge pull request #707 from protoss-player/master
bdarnell [Tue, 9 Apr 2013 02:49:29 +0000 (19:49 -0700)] 
Merge pull request #707 from protoss-player/master

websocket_connect should not hang on HTTP errors

12 years agoUpdate debug mode docs.
Ben Darnell [Tue, 9 Apr 2013 02:46:30 +0000 (22:46 -0400)] 
Update debug mode docs.

12 years agoAdd 3.0.1 release notes.
Ben Darnell [Tue, 9 Apr 2013 02:22:34 +0000 (22:22 -0400)] 
Add 3.0.1 release notes.

12 years agoMerge pull request #704 from chrislea/master
bdarnell [Tue, 9 Apr 2013 02:00:19 +0000 (19:00 -0700)] 
Merge pull request #704 from chrislea/master

Add check for ssl.CertificateError in netutil.py

12 years agoHTTPResponse.request should always be an HTTPRequest, never a _RequestProxy.
Ben Darnell [Tue, 9 Apr 2013 01:47:35 +0000 (21:47 -0400)] 
HTTPResponse.request should always be an HTTPRequest, never a _RequestProxy.

Closes #718.

12 years agoMerge pull request #720 from wsantos/facebook_future
bdarnell [Tue, 9 Apr 2013 01:14:26 +0000 (18:14 -0700)] 
Merge pull request #720 from wsantos/facebook_future

Add future interface to FacebookGraphMixin

12 years agoAdd future interface to FacebookGraphMixin 720/head
Waldecir Santos [Mon, 8 Apr 2013 18:41:09 +0000 (15:41 -0300)] 
Add future interface to FacebookGraphMixin

12 years agoAdd an ioloop command line flag to the benchmark script.
Ben Darnell [Sun, 7 Apr 2013 17:07:23 +0000 (13:07 -0400)] 
Add an ioloop command line flag to the benchmark script.

12 years agoUpdate pyuv test for latest version of pyuv and tornado-pyuv
Ben Darnell [Fri, 5 Apr 2013 02:30:52 +0000 (22:30 -0400)] 
Update pyuv test for latest version of pyuv and tornado-pyuv

12 years agoFix precedence of StringIO imports for LogTrapTestCase.
Ben Darnell [Wed, 3 Apr 2013 00:29:34 +0000 (20:29 -0400)] 
Fix precedence of StringIO imports for LogTrapTestCase.

io.StringIO doesn't allow byte strings even on python 2, which causes
it to fail with the standard log formatter (but not tornado's "pretty
logging").

Closes #708.

12 years agotests: test for websocket_connect failure 707/head
Vadim Semenov [Tue, 2 Apr 2013 15:27:26 +0000 (19:27 +0400)] 
tests: test for websocket_connect failure

12 years agoSet the __test__ attribute on gen_test to False.
Ben Darnell [Tue, 2 Apr 2013 04:11:10 +0000 (00:11 -0400)] 
Set the __test__ attribute on gen_test to False.

Without this, if a nose-using project imported gen_test nose would try
to run it as a test.

12 years agowebsocket_connect: don't hang on HTTP errors
Vadim Semenov [Mon, 1 Apr 2013 23:03:12 +0000 (03:03 +0400)] 
websocket_connect: don't hang on HTTP errors

12 years agoFix exceptions in the gen module to work correctly with tuple keys.
Ben Darnell [Sun, 31 Mar 2013 22:34:48 +0000 (18:34 -0400)] 
Fix exceptions in the gen module to work correctly with tuple keys.

Previously this would result in a TypeError instead of the intended exception.

12 years agoMerge branch 'branch3.0'
Ben Darnell [Sun, 31 Mar 2013 21:45:19 +0000 (17:45 -0400)] 
Merge branch 'branch3.0'

12 years agoCopy the notice about dict-style access to options to the backwards-compat section.
Ben Darnell [Sun, 31 Mar 2013 21:44:22 +0000 (17:44 -0400)] 
Copy the notice about dict-style access to options to the backwards-compat section.

12 years agoadd check for ssl.CertificateError 704/head
Chris Lea [Fri, 29 Mar 2013 22:33:02 +0000 (15:33 -0700)] 
add check for ssl.CertificateError

12 years agoInclude readme in the setup.py long_description field.
Ben Darnell [Fri, 29 Mar 2013 13:48:45 +0000 (09:48 -0400)] 
Include readme in the setup.py long_description field.

This should let pypi pick it up automatically on upload.

12 years agoBump version number in the master branch
Ben Darnell [Fri, 29 Mar 2013 13:47:52 +0000 (09:47 -0400)] 
Bump version number in the master branch

12 years agoPypi's rst rendering doesn't like it when the same anchortext is reused
Ben Darnell [Fri, 29 Mar 2013 13:32:15 +0000 (09:32 -0400)] 
Pypi's rst rendering doesn't like it when the same anchortext is reused
for different targets.

12 years agoSet version number to 3.0 v3.0.0
Ben Darnell [Fri, 29 Mar 2013 13:02:04 +0000 (09:02 -0400)] 
Set version number to 3.0

12 years agoFinalize 3.0 release notes.
Ben Darnell [Fri, 29 Mar 2013 13:01:44 +0000 (09:01 -0400)] 
Finalize 3.0 release notes.

12 years agoDownloads are now hosted on pypi instead of github.
Ben Darnell [Fri, 29 Mar 2013 12:55:39 +0000 (08:55 -0400)] 
Downloads are now hosted on pypi instead of github.

12 years agoFix another broken link on readme.
Ben Darnell [Thu, 28 Mar 2013 04:13:20 +0000 (00:13 -0400)] 
Fix another broken link on readme.

12 years agoFix rst markup in readme
Ben Darnell [Thu, 28 Mar 2013 04:12:10 +0000 (00:12 -0400)] 
Fix rst markup in readme

12 years agoReplace the outdated README.md with a lightly-edited version of docs/index.rst
Ben Darnell [Thu, 28 Mar 2013 04:11:06 +0000 (00:11 -0400)] 
Replace the outdated README.md with a lightly-edited version of docs/index.rst

12 years agoUpdate pypi description field.
Ben Darnell [Thu, 28 Mar 2013 03:29:01 +0000 (23:29 -0400)] 
Update pypi description field.

12 years agoFix options.parse_config_file on Python 3.
Ben Darnell [Thu, 28 Mar 2013 02:55:04 +0000 (22:55 -0400)] 
Fix options.parse_config_file on Python 3.

Add a test for this function.

Closes #702.

12 years agoBump version to 3.0b2
Ben Darnell [Mon, 25 Mar 2013 03:22:20 +0000 (23:22 -0400)] 
Bump version to 3.0b2

12 years agoDelete HTTPConnection._close_callback in between requests.
Ben Darnell [Mon, 25 Mar 2013 03:21:08 +0000 (23:21 -0400)] 
Delete HTTPConnection._close_callback in between requests.

Previously the close callback would cause a reference to the previous
RequestHandler to be retained while waiting for the next request.

12 years agoFix error handling with the combination of @asynchronous and @gen.coroutine.
Ben Darnell [Sun, 24 Mar 2013 01:25:14 +0000 (21:25 -0400)] 
Fix error handling with the combination of @asynchronous and @gen.coroutine.

Also make self.finish() optional for coroutines since we can finish
if the future resolves successfully.

12 years agodigest authentication 700/head
icaromedeiros [Fri, 22 Mar 2013 14:24:49 +0000 (11:24 -0300)] 
digest authentication

12 years agoFix draft76 websocket protocol; fix websocket demo for python 3.
Ben Darnell [Tue, 19 Mar 2013 00:52:23 +0000 (20:52 -0400)] 
Fix draft76 websocket protocol; fix websocket demo for python 3.

12 years agoDocument tornado.concurrent.Future.
Ben Darnell [Sun, 17 Mar 2013 17:42:12 +0000 (13:42 -0400)] 
Document tornado.concurrent.Future.

All internal links now point there instead of to concurrent.future.Futures.

12 years agoBump version number to 3.0b1
Ben Darnell [Sat, 16 Mar 2013 23:34:01 +0000 (19:34 -0400)] 
Bump version number to 3.0b1

12 years agoConvert auth demo to coroutines.
Ben Darnell [Sat, 16 Mar 2013 23:12:20 +0000 (19:12 -0400)] 
Convert auth demo to coroutines.

12 years agoMove gen from "utilities" to "asynchronous networking"
Ben Darnell [Sat, 16 Mar 2013 23:05:11 +0000 (19:05 -0400)] 
Move gen from "utilities" to "asynchronous networking"

12 years agoAdd/update docs for twisted, caresresolver, and util modules
Ben Darnell [Sat, 16 Mar 2013 22:52:07 +0000 (18:52 -0400)] 
Add/update docs for twisted, caresresolver, and util modules

12 years agoDoc updates: modules starting with W.
Ben Darnell [Sat, 16 Mar 2013 22:01:57 +0000 (18:01 -0400)] 
Doc updates: modules starting with W.

12 years agoSkip ThreadedResolver tests on pypy.
Ben Darnell [Sat, 16 Mar 2013 17:43:04 +0000 (13:43 -0400)] 
Skip ThreadedResolver tests on pypy.

There seem to be problems with thread/signal interactions.

12 years agoDoc updates, modules N-T.
Ben Darnell [Sat, 16 Mar 2013 17:13:58 +0000 (13:13 -0400)] 
Doc updates, modules N-T.

12 years agoDoc updates, modules H-L
Ben Darnell [Sat, 16 Mar 2013 15:50:31 +0000 (11:50 -0400)] 
Doc updates, modules H-L

12 years agoTurn on dangling-reference warning in sphinx for local builds.
Ben Darnell [Sat, 16 Mar 2013 14:34:00 +0000 (10:34 -0400)] 
Turn on dangling-reference warning in sphinx for local builds.

Reformat the HTTPFile docs where were causing odd reference errors.

12 years agoFix dangling references in old release notes.
Ben Darnell [Sat, 16 Mar 2013 05:41:50 +0000 (01:41 -0400)] 
Fix dangling references in old release notes.

12 years agoFix docstring for locale.load_translations.
Ben Darnell [Sat, 16 Mar 2013 05:25:22 +0000 (01:25 -0400)] 
Fix docstring for locale.load_translations.

When unicode strings started using the u() function, this string
was no longer considered a docstring.

12 years agoFix most of the rest of the dangling references.
Ben Darnell [Sat, 16 Mar 2013 05:21:53 +0000 (01:21 -0400)] 
Fix most of the rest of the dangling references.

12 years agoUpdate chat demo to be more exemplary.
Ben Darnell [Sat, 16 Mar 2013 04:52:04 +0000 (00:52 -0400)] 
Update chat demo to be more exemplary.

Use gen.coroutine in auth handler (but not in wait_for_messages
because it makes things less clear and we don't have good cancellation
support).  No more mixin.  Python 3 compatible.

12 years agoRewrite gen docs to make coroutine the primary decorator.
Ben Darnell [Sat, 16 Mar 2013 04:18:46 +0000 (00:18 -0400)] 
Rewrite gen docs to make coroutine the primary decorator.

12 years agoFix dangling links in next.rst
Ben Darnell [Sat, 16 Mar 2013 03:29:42 +0000 (23:29 -0400)] 
Fix dangling links in next.rst

12 years agoFix dangling references in recently-revised docs.
Ben Darnell [Sat, 16 Mar 2013 03:09:49 +0000 (23:09 -0400)] 
Fix dangling references in recently-revised docs.

12 years agoTurn on intersphinx support for links to the standard library.
Ben Darnell [Sat, 16 Mar 2013 02:56:03 +0000 (22:56 -0400)] 
Turn on intersphinx support for links to the standard library.

12 years agoMinor doc updates for modules A-E
Ben Darnell [Sat, 16 Mar 2013 02:46:51 +0000 (22:46 -0400)] 
Minor doc updates for modules A-E

12 years agoConvert auth module code samples to use gen.coroutine.
Ben Darnell [Sat, 16 Mar 2013 02:24:13 +0000 (22:24 -0400)] 
Convert auth module code samples to use gen.coroutine.

12 years agoDoc updates for the auth module.
Ben Darnell [Sat, 16 Mar 2013 02:16:37 +0000 (22:16 -0400)] 
Doc updates for the auth module.

12 years agoRename WebSocketConnect to websocket_connect.
Ben Darnell [Fri, 15 Mar 2013 03:45:48 +0000 (23:45 -0400)] 
Rename WebSocketConnect to websocket_connect.

Add docs for undocumented functions and modules.

12 years agoAdd new methods to docs, found by sphinx coverage extension.
Ben Darnell [Fri, 15 Mar 2013 03:07:58 +0000 (23:07 -0400)] 
Add new methods to docs, found by sphinx coverage extension.

12 years agoFix bad merge
Ben Darnell [Fri, 15 Mar 2013 02:44:18 +0000 (22:44 -0400)] 
Fix bad merge

12 years agoMerge remote-tracking branch 'norman-labs/branch2.4'
Ben Darnell [Fri, 15 Mar 2013 01:36:34 +0000 (21:36 -0400)] 
Merge remote-tracking branch 'norman-labs/branch2.4'

Conflicts:
tornado/httputil.py

12 years agoAdd hooks for HTTPClient and HTTPConnection customization.
Vladlen Y. Koshelev [Wed, 13 Mar 2013 15:21:23 +0000 (19:21 +0400)] 
Add hooks for HTTPClient and HTTPConnection customization.

12 years agoMerge pull request #695 from evanj/master
bdarnell [Wed, 13 Mar 2013 01:54:24 +0000 (18:54 -0700)] 
Merge pull request #695 from evanj/master

httpserver: If no X-Scheme header, use the normal request value.

12 years agohttpserver: If no X-Scheme header, use the normal request value. 695/head
Evan Jones [Tue, 12 Mar 2013 20:23:52 +0000 (16:23 -0400)] 
httpserver: If no X-Scheme header, use the normal request value.

Previously, if xheaders is True and there are no X headers passed (e.g. when
developing locally), scheme was always "http". This makes in "http" or
"https", based on what was actually used for the request.

Add tests for the X-Scheme and X-Forwarded-Proto headers.

12 years agoRewrite text on index page.
Ben Darnell [Mon, 11 Mar 2013 03:04:06 +0000 (23:04 -0400)] 
Rewrite text on index page.

12 years agoupdate the statement of testing if a handler is a list or tuple 693/head
yushengjun [Mon, 11 Mar 2013 02:54:05 +0000 (10:54 +0800)] 
update the statement of testing if a handler is a list or tuple

12 years agoBuild pdfs from documentation.rst, not index.rst
Ben Darnell [Mon, 11 Mar 2013 01:32:36 +0000 (21:32 -0400)] 
Build pdfs from documentation.rst, not index.rst

12 years agoJust skip all timing-sensitive tests on travis-ci.
Ben Darnell [Sun, 10 Mar 2013 23:11:59 +0000 (19:11 -0400)] 
Just skip all timing-sensitive tests on travis-ci.

12 years agoFix internal links for pdf output.
Ben Darnell [Sun, 10 Mar 2013 20:49:19 +0000 (16:49 -0400)] 
Fix internal links for pdf output.

12 years agoFix sphinx config in its new home, restore Makefile and custom css.
Ben Darnell [Sun, 10 Mar 2013 20:24:38 +0000 (16:24 -0400)] 
Fix sphinx config in its new home, restore Makefile and custom css.

12 years agoMove website/sphinx/ to docs/, remove rest of appengine website dir.
Ben Darnell [Sun, 10 Mar 2013 20:05:20 +0000 (16:05 -0400)] 
Move website/sphinx/ to docs/, remove rest of appengine website dir.

12 years agoMerge branch 'branch2.4'
Ben Darnell [Sun, 10 Mar 2013 20:00:58 +0000 (16:00 -0400)] 
Merge branch 'branch2.4'

12 years agoAdd favicon to sphinx config
Ben Darnell [Sun, 10 Mar 2013 19:58:05 +0000 (15:58 -0400)] 
Add favicon to sphinx config

12 years agoMerge branch 'branch2.4'
Ben Darnell [Sun, 10 Mar 2013 19:30:18 +0000 (15:30 -0400)] 
Merge branch 'branch2.4'

12 years agoAdd a max-width for body text to match the appengine site
Ben Darnell [Sun, 10 Mar 2013 19:08:43 +0000 (15:08 -0400)] 
Add a max-width for body text to match the appengine site

12 years agoGet the tricky parts of the sphinx conversion working.
Ben Darnell [Sun, 10 Mar 2013 19:04:06 +0000 (15:04 -0400)] 
Get the tricky parts of the sphinx conversion working.