]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
14 years agoReindent example in docstring, which apparently trips up emacs' indentation 149/head
Ben Darnell [Tue, 12 Oct 2010 00:24:11 +0000 (17:24 -0700)] 
Reindent example in docstring, which apparently trips up emacs' indentation
detection.

14 years agoMake Locale.format_date() behave sanely with dates in the future.
Ben Darnell [Tue, 12 Oct 2010 00:17:13 +0000 (17:17 -0700)] 
Make Locale.format_date() behave sanely with dates in the future.

Closes #150.

14 years agoRun all IOStream callbacks inside a NullContext so that exception
Ben Darnell [Tue, 12 Oct 2010 00:02:15 +0000 (17:02 -0700)] 
Run all IOStream callbacks inside a NullContext so that exception
handlers are run in the right order.

14 years agoMake USE_SIMPLE_HTTPCLIENT work without pycurl installed.
Ben Darnell [Mon, 11 Oct 2010 21:39:38 +0000 (14:39 -0700)] 
Make USE_SIMPLE_HTTPCLIENT work without pycurl installed.

14 years agoAdd initial version of non-curl-based AsyncHTTPClient.
Ben Darnell [Mon, 11 Oct 2010 21:16:52 +0000 (14:16 -0700)] 
Add initial version of non-curl-based AsyncHTTPClient.

14 years agoLimit the amount of data sent to socket.send at a time (for windows).
Ben Darnell [Mon, 11 Oct 2010 18:20:25 +0000 (11:20 -0700)] 
Limit the amount of data sent to socket.send at a time (for windows).

Closes #97.

14 years agoMove Links section from index.html to the wiki.
Ben Darnell [Fri, 8 Oct 2010 18:56:16 +0000 (11:56 -0700)] 
Move Links section from index.html to the wiki.
Remove links to unmaintained social media accounts.

14 years agoFix StackContext in IOStream. IOStream._handle_events now runs in a
Ben Darnell [Fri, 8 Oct 2010 18:25:52 +0000 (11:25 -0700)] 
Fix StackContext in IOStream.  IOStream._handle_events now runs in a
NullContext, and user callbacks are wrapped on entry to IOStream.

Also added logging for uncaught exceptions and made stack_context.wrap
None-safe.

http://groups.google.com/group/python-tornado/browse_thread/thread/9b5044def39c2ed9

14 years agoadd a linkify() function for converting text to html with link detection. Also change...
Paul Buchheit [Thu, 30 Sep 2010 21:41:13 +0000 (14:41 -0700)] 
add a linkify() function for converting text to html with link detection. Also changed xhtml_escape to not convert return value to utf8, since pages should be assembed in unicode and not utf8 encoded until they are ready to write().

14 years agoHandle IOStream.read_bytes(0) gracefully.
Ben Darnell [Wed, 29 Sep 2010 03:11:42 +0000 (20:11 -0700)] 
Handle IOStream.read_bytes(0) gracefully.

14 years agoMake AsyncTestCase.stop() prefer _arg over **kwargs, even when the former
Ben Darnell [Wed, 29 Sep 2010 03:10:56 +0000 (20:10 -0700)] 
Make AsyncTestCase.stop() prefer _arg over **kwargs, even when the former
is not truthy.

14 years agoRemove references to async_callback from documentation
Ben Darnell [Tue, 28 Sep 2010 22:46:21 +0000 (15:46 -0700)] 
Remove references to async_callback from documentation

14 years agoIn the select()-based IOLoop, always listen for reads so we can tell
Ben Darnell [Mon, 27 Sep 2010 21:08:56 +0000 (14:08 -0700)] 
In the select()-based IOLoop, always listen for reads so we can tell
when the other side closed the connection.

Closes #37.

14 years agoClose the IOStream when the remote connection is closed.
Ben Darnell [Mon, 27 Sep 2010 19:46:20 +0000 (12:46 -0700)] 
Close the IOStream when the remote connection is closed.

This was a regression introduced by http://github.com/facebook/tornado/commit/f6f7f83719a48083f3e5ed999e19c0ec67de9b9b

Closes #143.

14 years agoFactor port-selection logic out of AsyncHTTPTestCase so it can be used
Ben Darnell [Mon, 27 Sep 2010 19:04:43 +0000 (12:04 -0700)] 
Factor port-selection logic out of AsyncHTTPTestCase so it can be used
from lower-level tests

14 years agoMake StackContext more usable in libraries by reducing the need to
Ben Darnell [Fri, 24 Sep 2010 18:42:33 +0000 (11:42 -0700)] 
Make StackContext more usable in libraries by reducing the need to
explicitly use IOLoop.add_callback or NullContext.

This change also simplifies and codifies the ordering behavior of
StackContext:  When a wrapped callback is executed, the innermost
StackContexts are those that were active when the callback was
wrapped.  Additional StackContexts (possibly including other copies
of the same contexts) may be present in outer levels of the stack, but
since the role of most StackContexts is to catch exceptions this should
not have any effect.

Backwards compatibility note:  StackContexts that do something other than
catch exceptions may need to be modified to be reentrant.

14 years agoUpdate installation instructions in README.
Ben Darnell [Thu, 23 Sep 2010 16:37:32 +0000 (09:37 -0700)] 
Update installation instructions in README.

Closes #142.

14 years agoFix default_host redirect.
Ben Darnell [Tue, 21 Sep 2010 19:15:02 +0000 (12:15 -0700)] 
Fix default_host redirect.

Closes #141.

14 years agoFix improperly-renamed variable in set_blocking_signal_threshold
Ben Darnell [Sat, 18 Sep 2010 20:22:30 +0000 (13:22 -0700)] 
Fix improperly-renamed variable in set_blocking_signal_threshold

14 years agoMake xhtml_escape available in the template namespace under its own name
Ben Darnell [Fri, 17 Sep 2010 21:46:43 +0000 (14:46 -0700)] 
Make xhtml_escape available in the template namespace under its own name
in addition to "escape".

14 years agoMove cookie-signing code from set_secure_cookie to a new method for non-cookie use...
Ben Darnell [Fri, 17 Sep 2010 21:45:45 +0000 (14:45 -0700)] 
Move cookie-signing code from set_secure_cookie to a new method for non-cookie use cases

14 years agoDocument the entire template namespace
Ben Darnell [Fri, 17 Sep 2010 18:02:43 +0000 (11:02 -0700)] 
Document the entire template namespace

14 years agoGeneralize IOLoop.set_blocking_log_threshold by allowing user-specified
Ben Darnell [Fri, 17 Sep 2010 00:14:31 +0000 (17:14 -0700)] 
Generalize IOLoop.set_blocking_log_threshold by allowing user-specified
signal handlers (via a new set_blocking_signal_threshold method).

Also support a handler value of None to kill the process (SIG_DFL)

14 years agoRefactor IOStream reading logic to fix problems with SSL sockets.
Ben Darnell [Thu, 16 Sep 2010 20:45:13 +0000 (13:45 -0700)] 
Refactor IOStream reading logic to fix problems with SSL sockets.

Now reads from the socket until it would block.  This ensures that we
see data in SSLSocket's internal buffers, which are otherwise invisible
to functions like select().

Added a test that makes a large POST request to an SSL server, which was
the scenario that originally exposed this bug.

14 years agoFixed another two win32_support import
Szabó Antal [Sun, 12 Sep 2010 22:32:39 +0000 (00:32 +0200)] 
Fixed another two win32_support import

14 years agoFixed win32_support import
Szabó Antal [Sun, 12 Sep 2010 22:24:22 +0000 (00:24 +0200)] 
Fixed win32_support import

14 years agoAdded binary flag to _waker_reader and _waker_writer
Szabó Antal [Sun, 12 Sep 2010 21:58:31 +0000 (23:58 +0200)] 
Added binary flag to _waker_reader and _waker_writer

14 years agoReplaced map() in web.py with for loop
Szabó Antal [Sun, 12 Sep 2010 21:34:38 +0000 (23:34 +0200)] 
Replaced map() in web.py with for loop

14 years agoChanged e[0] to e.args[0]
Szabó Antal [Sun, 12 Sep 2010 21:22:30 +0000 (23:22 +0200)] 
Changed e[0] to e.args[0]

14 years agoUpdate docs to mention requirement of pycurl 7.18.2.
Ben Darnell [Tue, 14 Sep 2010 17:42:56 +0000 (10:42 -0700)] 
Update docs to mention requirement of pycurl 7.18.2.

14 years agoMerge remote branch 'fiam/master'
Ben Darnell [Mon, 13 Sep 2010 20:41:14 +0000 (13:41 -0700)] 
Merge remote branch 'fiam/master'

14 years agoWhen forking multiple processes, properly initialize the random seed 138/head
Alberto García Hierro [Mon, 13 Sep 2010 18:10:23 +0000 (20:10 +0200)] 
When forking multiple processes, properly initialize the random seed

Avoid seeding the random module with the same value in all processes.
If available, use the same method used by random.py, otherwise
generate a seed using the current time in milliseconds and the pid.

14 years agoAvoid raising a KeyError when there's no session expiration date
Alberto García Hierro [Mon, 13 Sep 2010 18:09:40 +0000 (20:09 +0200)] 
Avoid raising a KeyError when there's no session expiration date

It happens when the token is requested with the 'offline_access'
extended permission.

14 years agoFix calls to getattr (which, unlike dict.get, does not default to None).
Ben Darnell [Mon, 13 Sep 2010 18:18:46 +0000 (11:18 -0700)] 
Fix calls to getattr (which, unlike dict.get, does not default to None).

Reported in issue #137.

14 years agoAdd download url to setup.py for pypi
Ben Darnell [Thu, 9 Sep 2010 17:06:47 +0000 (10:06 -0700)] 
Add download url to setup.py for pypi

14 years agoCheck self._running before rescheduling a PeriodicCallback, so stop() can
Ben Darnell [Wed, 8 Sep 2010 22:06:21 +0000 (15:06 -0700)] 
Check self._running before rescheduling a PeriodicCallback, so stop() can
be called from inside the callback.

Closes #135.

14 years agoBump version number to 1.1 v1.1.0
Ben Darnell [Wed, 8 Sep 2010 00:05:12 +0000 (17:05 -0700)] 
Bump version number to 1.1

14 years agoDisable SSL test on versions of libcurl with blocking SSL handshakes.
Ben Darnell [Wed, 8 Sep 2010 00:02:50 +0000 (17:02 -0700)] 
Disable SSL test on versions of libcurl with blocking SSL handshakes.
(using gnutls instead of openssl and libcurl < 7.21.0).

14 years agoDisable SSL test on python 2.5
Ben Darnell [Tue, 7 Sep 2010 23:01:22 +0000 (16:01 -0700)] 
Disable SSL test on python 2.5

14 years agoUse the older name for threading.activeCount for compatibility with python 2.5
Ben Darnell [Tue, 7 Sep 2010 23:01:04 +0000 (16:01 -0700)] 
Use the older name for threading.activeCount for compatibility with python 2.5

14 years agoFix error in comment
Ben Darnell [Tue, 7 Sep 2010 22:19:21 +0000 (15:19 -0700)] 
Fix error in comment

14 years agoFix typo in websocket.py
Ben Darnell [Mon, 6 Sep 2010 18:24:09 +0000 (11:24 -0700)] 
Fix typo in websocket.py

Closes #133.

14 years agoRemove superfluous lambdas in tornado.escape.
Ben Darnell [Mon, 6 Sep 2010 07:00:52 +0000 (00:00 -0700)] 
Remove superfluous lambdas in tornado.escape.

Closes #132.

14 years agoDocument why RequestHandler.write does not convert lists to JSON.
Ben Darnell [Sun, 5 Sep 2010 03:38:59 +0000 (20:38 -0700)] 
Document why RequestHandler.write does not convert lists to JSON.

14 years agoAdd more documentation for request.files.
Ben Darnell [Sat, 4 Sep 2010 19:19:46 +0000 (12:19 -0700)] 
Add more documentation for request.files.

14 years agoauth.py updates for OAuth 1.0a and 2.0.
Joe Bowman [Tue, 31 Aug 2010 15:38:06 +0000 (11:38 -0400)] 
auth.py updates for OAuth 1.0a and 2.0.

OAuthMixin now supports both 1.0a and 1.0 (defaults to 1.0a).  TwitterMixin
and GoogleMixin now use 1.0a, FriendfeedMixin remains at 1.0.  This adds
support for the callback_uri parameter to TwitterMixin.

New classes OAuth2Mixin and FacebookGraphMixin are introduced for the new
Facebook APIs.

Backwards compatibility notes:

Pending authorizations begun prior to this change will not be able to
be completed after it (tokens issued under prior versions of this code
will still work; this warning applies only to users who have started
but not yet completed their initial authorizations).

If you have used OAuthMixin directly (not one of the subclasses in this
module) to access a service that does not support OAuth 1.0a, set
_OAUTH_VERSION = "1.0" in your subclass.

Pull requests:
http://github.com/facebook/tornado/pull/126
http://github.com/facebook/tornado/pull/128
http://github.com/facebook/tornado/pull/130

Written by Joe Bowman, rebased from http://github.com/joerussbowman/tornado/commit/1572ecc6726f1ab33d2153798af0f13ad9e75ab6 by Ben Darnell.

14 years agoRemove the statement that tornado has only been tested with firefox.
Ben Darnell [Wed, 1 Sep 2010 22:27:32 +0000 (15:27 -0700)] 
Remove the statement that tornado has only been tested with firefox.

14 years agoRemove __del__ method from HTTPResponse. Closing cStringIO objects isn't
Ben Darnell [Wed, 1 Sep 2010 22:16:57 +0000 (15:16 -0700)] 
Remove __del__ method from HTTPResponse.  Closing cStringIO objects isn't
really necessary, and the presence of a __del__ method prevents python's
GC from breaking cyclical references (which happen on errors as HTTPError
and HTTPResponse refer to each other).

Closes #125.

14 years agoUpdate class docstring for HTTPServer.
Ben Darnell [Mon, 30 Aug 2010 19:18:21 +0000 (12:18 -0700)] 
Update class docstring for HTTPServer.

Closes #123.

14 years agoadding support for http method OPTIONS used by firefox, safari, for cross domain
Aaron Raddon [Tue, 22 Dec 2009 18:40:59 +0000 (10:40 -0800)] 
adding support for http method OPTIONS used by firefox, safari, for cross domain

Closes #46.

14 years agoFix reference to slice.indices.
Ben Darnell [Thu, 26 Aug 2010 18:52:41 +0000 (11:52 -0700)] 
Fix reference to slice.indices.

Is this used anywhere?

Closes: #13.
14 years agoDocument the limitations of multi-process mode.
Ben Darnell [Thu, 26 Aug 2010 18:40:49 +0000 (11:40 -0700)] 
Document the limitations of multi-process mode.

Closes #65.

14 years agoDocument the fact that add_handlers should only be called once for each
Ben Darnell [Thu, 26 Aug 2010 18:31:54 +0000 (11:31 -0700)] 
Document the fact that add_handlers should only be called once for each
host_pattern.

14 years agoSet pycurl.NOSIGNAL when multiple threads are detected.
Ben Darnell [Thu, 26 Aug 2010 18:09:56 +0000 (11:09 -0700)] 
Set pycurl.NOSIGNAL when multiple threads are detected.

Closes #121.

14 years agoSet PeriodicCallback._running to True in start instead of __init__
Ben Darnell [Thu, 26 Aug 2010 00:17:44 +0000 (17:17 -0700)] 
Set PeriodicCallback._running to True in start instead of __init__

Closes #72.

14 years agoAdd a tornado.version variable, and use it anywhere we use the current
Ben Darnell [Wed, 25 Aug 2010 23:54:02 +0000 (16:54 -0700)] 
Add a tornado.version variable, and use it anywhere we use the current
tornado version to produce a Server: header.

Closes #22.

14 years agoCheck in Jacob Kristhammar's updated websocket implementation.
Ben Darnell [Wed, 25 Aug 2010 23:34:41 +0000 (16:34 -0700)] 
Check in Jacob Kristhammar's updated websocket implementation.

http://groups.google.com/group/python-tornado/browse_thread/thread/065823d0c6593b85

14 years agoAdd more documentation of overridable methods in RequestHandler
Ben Darnell [Wed, 25 Aug 2010 22:34:21 +0000 (15:34 -0700)] 
Add more documentation of overridable methods in RequestHandler

14 years agoMove AuthRedirectTest from httpserver_test to web_test where it belongs
Ben Darnell [Wed, 25 Aug 2010 18:36:44 +0000 (11:36 -0700)] 
Move AuthRedirectTest from httpserver_test to web_test where it belongs

14 years agoAdd a test for HTTPServer's SSL support
Ben Darnell [Wed, 25 Aug 2010 18:33:09 +0000 (11:33 -0700)] 
Add a test for HTTPServer's SSL support

14 years agoDon't swallow SSL errors - always reraise or return
Ben Darnell [Wed, 25 Aug 2010 18:32:10 +0000 (11:32 -0700)] 
Don't swallow SSL errors - always reraise or return

14 years agoMake the SSL handshake non-blocking.
Ben Darnell [Thu, 19 Aug 2010 18:25:15 +0000 (14:25 -0400)] 
Make the SSL handshake non-blocking.

Based on work by mgenti.  See
http://github.com/mgenti/tornado/commit/197e88e62f1970b65a3807ac37160194fab7d496
and its ancestors.

14 years agoMerge remote branch 'tomhsx/proxy-support'
Ben Darnell [Thu, 19 Aug 2010 17:57:47 +0000 (13:57 -0400)] 
Merge remote branch 'tomhsx/proxy-support'

14 years agoAdd HTTPServer(..., xheaders=True) to the web documentation.
Ben Darnell [Thu, 19 Aug 2010 17:52:09 +0000 (13:52 -0400)] 
Add HTTPServer(..., xheaders=True) to the web documentation.

14 years agoAdd a links section to the website
Ben Darnell [Thu, 19 Aug 2010 17:48:08 +0000 (13:48 -0400)] 
Add a links section to the website

14 years agoAdded proxy support to httpclient
tomhsx [Mon, 16 Aug 2010 05:37:16 +0000 (01:37 -0400)] 
Added proxy support to httpclient

14 years agoSuppress tornado's default logging setup if there is any existing logging
Ben Darnell [Mon, 16 Aug 2010 01:17:42 +0000 (18:17 -0700)] 
Suppress tornado's default logging setup if there is any existing logging
config, not just --log_file_prefix.

14 years agoIn LogTrapTestCase, leave everything alone rather than throwing an exception
Ben Darnell [Mon, 16 Aug 2010 01:11:48 +0000 (18:11 -0700)] 
In LogTrapTestCase, leave everything alone rather than throwing an exception
if the logging config is not as expected.

14 years agoInitialize member variables in AsyncTestCase.__init__ instead of setUp
Ben Darnell [Mon, 16 Aug 2010 01:04:34 +0000 (18:04 -0700)] 
Initialize member variables in AsyncTestCase.__init__ instead of setUp
to avoid masking the real error in _stack_context() if run() throws an
exception.

14 years agoFix another link to 1.0.1
Ben Darnell [Fri, 13 Aug 2010 21:49:03 +0000 (14:49 -0700)] 
Fix another link to 1.0.1

14 years agoCheck in symlink to tornado package in website directory
Ben Darnell [Fri, 13 Aug 2010 17:51:50 +0000 (10:51 -0700)] 
Check in symlink to tornado package in website directory

14 years agoUpdate links to 1.0.1 release
Ben Darnell [Fri, 13 Aug 2010 17:50:37 +0000 (10:50 -0700)] 
Update links to 1.0.1 release

14 years agoTest case for secure cookie change
Ben Darnell [Fri, 13 Aug 2010 17:19:26 +0000 (10:19 -0700)] 
Test case for secure cookie change

14 years agoCheck for far-future timestamps in secure cookies.
Ben Darnell [Fri, 13 Aug 2010 17:18:28 +0000 (10:18 -0700)] 
Check for far-future timestamps in secure cookies.

14 years agoAdd future import to fix tests on 2.5
Ben Darnell [Fri, 13 Aug 2010 07:34:23 +0000 (00:34 -0700)] 
Add future import to fix tests on 2.5

15 years agoAdd a mention of on_connection_close to the html docs. Add a
Ben Darnell [Wed, 11 Aug 2010 18:34:40 +0000 (11:34 -0700)] 
Add a mention of on_connection_close to the html docs.  Add a
warning about proxies keeping connections open.

15 years agoRemove the ability to pre-bind parameters in stack_context.wrap.
Ben Darnell [Tue, 10 Aug 2010 21:00:18 +0000 (14:00 -0700)] 
Remove the ability to pre-bind parameters in stack_context.wrap.

This functionality was incorrect and unused, and unlike async_callback,
I don't think the implicit binding is a good fit for this API.

15 years agoReindent everything to 4 spaces.
Ben Darnell [Tue, 10 Aug 2010 20:57:32 +0000 (13:57 -0700)] 
Reindent everything to 4 spaces.

15 years agoStackContext should not re-wrap previously-wrapped callbacks.
Ben Darnell [Tue, 10 Aug 2010 20:51:53 +0000 (13:51 -0700)] 
StackContext should not re-wrap previously-wrapped callbacks.

This allows for library code to "pop" back up to a previous version of the
stack.

15 years agoBe less picky about line endings in headers in httpclient.
Ben Darnell [Mon, 9 Aug 2010 21:33:32 +0000 (14:33 -0700)] 
Be less picky about line endings in headers in httpclient.

HTTP requires that lines end with \r\n, but some buggy servers (including
news.ycombinator.com) just use \n.  Libcurl tolerates this and sends the
line as-is to the header callback, so we need to be prepared to handle
either form.

15 years agoAdd a simple main function to httpclient.py for manual testing
Ben Darnell [Mon, 9 Aug 2010 21:12:33 +0000 (14:12 -0700)] 
Add a simple main function to httpclient.py for manual testing

15 years agoThe periodic call to multi_socket_all needs to be followed by
Ben Darnell [Mon, 9 Aug 2010 21:01:48 +0000 (14:01 -0700)] 
The periodic call to multi_socket_all needs to be followed by
 _finish_pending_request or else those requests won't be finished until
after the next one is started.

15 years agoRecord more detailed timing information from AsyncHTTPClient, and make
Ben Darnell [Fri, 6 Aug 2010 23:09:04 +0000 (16:09 -0700)] 
Record more detailed timing information from AsyncHTTPClient, and make
it available as HTTPResponse.time_info.

15 years agoWhen login_url is absolute, use an absolute url for the next redirect.
Ben Darnell [Fri, 6 Aug 2010 20:12:14 +0000 (13:12 -0700)] 
When login_url is absolute, use an absolute url for the next redirect.

Closes: GH-119
15 years agoUse the right IOLoop in AsyncHTTPClient's PeriodicCallback
Ben Darnell [Thu, 5 Aug 2010 01:47:42 +0000 (18:47 -0700)] 
Use the right IOLoop in AsyncHTTPClient's PeriodicCallback

15 years agoUse POST instead of GET for OpenID check_authentication.
Ben Darnell [Thu, 5 Aug 2010 00:42:07 +0000 (17:42 -0700)] 
Use POST instead of GET for OpenID check_authentication.

Google apparently doesn't check for this, but other OpenID providers do.

15 years agoSuppress libcurl's magic "Expect: 100-continue" behavior.
Ben Darnell [Thu, 5 Aug 2010 00:40:24 +0000 (17:40 -0700)] 
Suppress libcurl's magic "Expect: 100-continue" behavior.

This was motivated by the discovery of bug
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3039744&group_id=976

15 years agoAdd a brute-force workaround for the class of libcurl bugs that cause
Ben Darnell [Thu, 5 Aug 2010 00:30:20 +0000 (17:30 -0700)] 
Add a brute-force workaround for the class of libcurl bugs that cause
file descriptors or timeouts to get silently dropped.  (the old
fdset/perform implementation of AsycnHTTPClient had a similar workaround).

15 years agoFix a typo in docstring
Ben Darnell [Wed, 4 Aug 2010 21:00:34 +0000 (14:00 -0700)] 
Fix a typo in docstring

15 years agoParse form bodies on PUT as well as POST.
Ben Darnell [Wed, 4 Aug 2010 19:02:05 +0000 (12:02 -0700)] 
Parse form bodies on PUT as well as POST.

HTML5 adds support for PUT and DELETE in forms, so x-www-form-urlencoded
PUT bodies are now possible.

15 years agoWork around the "MySQL server has gone away" issue by closing and reopening
Ben Darnell [Tue, 3 Aug 2010 21:35:45 +0000 (14:35 -0700)] 
Work around the "MySQL server has gone away" issue by closing and reopening
connections that have been idle for too long.

15 years agoUse the more portable multiprocessing.cpu_count() to detect the number
Ben Darnell [Tue, 3 Aug 2010 21:21:24 +0000 (14:21 -0700)] 
Use the more portable multiprocessing.cpu_count() to detect the number
of cpus where available (python 2.6).

15 years agoAdd a workaround for missing multi.socket_action on older versions of pycurl.
Ben Darnell [Sat, 31 Jul 2010 00:22:53 +0000 (17:22 -0700)] 
Add a workaround for missing multi.socket_action on older versions of pycurl.

15 years agoOnly catch pycurl.error, not all Exceptions around a call to multi.socket_action.
Ben Darnell [Fri, 30 Jul 2010 23:47:13 +0000 (16:47 -0700)] 
Only catch pycurl.error, not all Exceptions around a call to multi.socket_action.

This was hiding an AttributeError being thrown on older versions of pycurl
(which did not expose the socket_action method).

15 years agoDocstring updates
Ben Darnell [Fri, 30 Jul 2010 21:21:37 +0000 (14:21 -0700)] 
Docstring updates

15 years agoFix a StackContext-related bug that was causing exceptions in callbacks
Ben Darnell [Fri, 30 Jul 2010 02:08:30 +0000 (19:08 -0700)] 
Fix a StackContext-related bug that was causing exceptions in callbacks
to result in timeouts instead of making wait() re-throw the exception.
Add a test to verify that this works.

15 years agoAdd __future__ import for python2.5 compatibility
Ben Darnell [Fri, 30 Jul 2010 02:01:13 +0000 (19:01 -0700)] 
Add __future__ import for python2.5 compatibility

15 years agoUpdate test_ioloop to use AsyncTestCase. Rename it to ioloop_test and
Ben Darnell [Fri, 30 Jul 2010 02:00:06 +0000 (19:00 -0700)] 
Update test_ioloop to use AsyncTestCase.  Rename it to ioloop_test and
make other stylistic changes for consistency.

15 years agoAdd a test framework for IOLoop-based async code
Ben Darnell [Fri, 30 Jul 2010 01:53:18 +0000 (18:53 -0700)] 
Add a test framework for IOLoop-based async code

15 years agoMake all internal imports of tornado modules absolute
Ben Darnell [Fri, 30 Jul 2010 00:03:40 +0000 (17:03 -0700)] 
Make all internal imports of tornado modules absolute