]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
11 years agocheck for errno.WSA* on 64-bit Windows (fixes #1052) 1084/head
Ullrich Koethe [Mon, 23 Jun 2014 12:40:40 +0000 (14:40 +0200)] 
check for errno.WSA* on 64-bit Windows (fixes #1052)

11 years agoSet version number to 4.0b1 v4.0.0b1
Ben Darnell [Sat, 21 Jun 2014 20:02:18 +0000 (16:02 -0400)] 
Set version number to 4.0b1

11 years agoUpdate docs for deprecations and removals.
Ben Darnell [Sat, 21 Jun 2014 18:20:15 +0000 (14:20 -0400)] 
Update docs for deprecations and removals.

11 years agoDrop support for the draft76 version of WebSockets.
Ben Darnell [Sat, 21 Jun 2014 17:50:56 +0000 (13:50 -0400)] 
Drop support for the draft76 version of WebSockets.

Browsers that only support draft76 are now less common than those
that do not support websockets at all, so applications should
use their non-websocket workarounds for these browsers.

11 years agoEdit comments to discourage creation of new OutputTransforms.
Ben Darnell [Sat, 21 Jun 2014 17:37:59 +0000 (13:37 -0400)] 
Edit comments to discourage creation of new OutputTransforms.

11 years agoUpdate tests after the removal of get_error_html.
Ben Darnell [Sat, 21 Jun 2014 18:05:49 +0000 (14:05 -0400)] 
Update tests after the removal of get_error_html.

11 years agoIncrease the test timeout on travis.
Ben Darnell [Sat, 21 Jun 2014 17:34:03 +0000 (13:34 -0400)] 
Increase the test timeout on travis.

11 years agoRemove support for the old get_error_html function.
Ben Darnell [Sat, 21 Jun 2014 17:32:44 +0000 (13:32 -0400)] 
Remove support for the old get_error_html function.

11 years agoRemove workarounds for ancient versions of libcurl.
Ben Darnell [Sat, 21 Jun 2014 17:05:57 +0000 (13:05 -0400)] 
Remove workarounds for ancient versions of libcurl.

11 years agoAdd pypy3 to tox.ini.
Ben Darnell [Sat, 21 Jun 2014 16:47:40 +0000 (12:47 -0400)] 
Add pypy3 to tox.ini.

11 years agoRelease note updates.
Ben Darnell [Fri, 20 Jun 2014 04:37:11 +0000 (00:37 -0400)] 
Release note updates.

11 years agoAdd new exception tornado.web.Finish to quietly end a request.
Ben Darnell [Thu, 19 Jun 2014 13:28:45 +0000 (09:28 -0400)] 
Add new exception tornado.web.Finish to quietly end a request.

This allows error pages to be generated inline with the main code
instead of in write_error and is friendlier to generating error pages
from library code.

Closes #1064.

11 years agoIntroduce IOLoop.call_later and call_at.
Ben Darnell [Wed, 18 Jun 2014 14:29:28 +0000 (10:29 -0400)] 
Introduce IOLoop.call_later and call_at.

call_later is a less-verbose alternative to add_timeout with a
timedelta; call_at exists for symmetry.  Both are named after
methods on the asyncio event loop, although there are small
variations (we support both args and kwargs while asyncio only supports
args; we use remove_timeout(handle) instead of handle.cancel()).

Closes #1049.

11 years agoFix a leak in AsyncHTTPClient shutdown.
Ben Darnell [Tue, 17 Jun 2014 14:09:15 +0000 (10:09 -0400)] 
Fix a leak in AsyncHTTPClient shutdown.

Clients created without force_instance=True were never getting
GC'd because we were using the wrong reference for the async_clients
instance cache.

To guard against future errors, failure to remove an instance
from the cache when we expected to now raises an error instead of
failing silently.

Closes #1079.

11 years agoIntroduce IOLoop.spawn_callback.
Ben Darnell [Mon, 16 Jun 2014 03:49:39 +0000 (23:49 -0400)] 
Introduce IOLoop.spawn_callback.

This makes it easier and more discoverable to run a callback without
stack_context.

Closes #867.

11 years agoRename HTTP{In,Out}putException to HTTP{In,Out}putError.
Ben Darnell [Mon, 16 Jun 2014 03:39:00 +0000 (23:39 -0400)] 
Rename HTTP{In,Out}putException to HTTP{In,Out}putError.

This follows the standard python naming convention for exceptions.

11 years agoRelax restrictions on HTTP methods in WebSocketHandler.
Ben Darnell [Mon, 16 Jun 2014 03:35:02 +0000 (23:35 -0400)] 
Relax restrictions on HTTP methods in WebSocketHandler.

Methods like set_status are now disallowed once the websocket handshake
has begun, but may be used before then.  This applies to application
overrides of prepare() and to WebSocketHandler.get's internal error
handling.

Closes #1065.

11 years agoDocument that IOStream.connect blocks on DNS and recommend TCPClient instead.
Ben Darnell [Sun, 15 Jun 2014 17:36:10 +0000 (13:36 -0400)] 
Document that IOStream.connect blocks on DNS and recommend TCPClient instead.

Closes #861.

11 years agoAdd clearer message for fetch() on closed AsyncHTTPClient.
Ben Darnell [Sun, 15 Jun 2014 16:39:38 +0000 (12:39 -0400)] 
Add clearer message for fetch() on closed AsyncHTTPClient.

Closes #866.

11 years agoDocument AsyncHTTPClient's defaults argument.
Ben Darnell [Sun, 15 Jun 2014 16:36:28 +0000 (12:36 -0400)] 
Document AsyncHTTPClient's defaults argument.

Closes #762.

11 years agoImprove callback scheduling.
Ben Darnell [Sun, 15 Jun 2014 16:11:22 +0000 (12:11 -0400)] 
Improve callback scheduling.

Collect all timeouts to be run before running any of them; this
prevents starvation when a slow callback reschedules itself.

Call time() again before setting poll_timeout to avoid scheduling
anomalies with slow callbacks.

Closes #947.

11 years agoRemove async_callback wrapper functions, which have been obsolete since 1.1.
Ben Darnell [Sun, 15 Jun 2014 15:52:34 +0000 (11:52 -0400)] 
Remove async_callback wrapper functions, which have been obsolete since 1.1.

Closes #283.

11 years agoAdd ETIMEDOUT to the list of relatively benign unclean-close errnos.
Ben Darnell [Sun, 15 Jun 2014 15:33:46 +0000 (11:33 -0400)] 
Add ETIMEDOUT to the list of relatively benign unclean-close errnos.

11 years agoWhen a function on the IOLoop returns a Future, log its exception.
Ben Darnell [Sun, 15 Jun 2014 15:32:11 +0000 (11:32 -0400)] 
When a function on the IOLoop returns a Future, log its exception.

11 years agoThe next version will be 4.0, not 3.3, so update all references to 3.3.
Ben Darnell [Sat, 7 Jun 2014 15:22:58 +0000 (11:22 -0400)] 
The next version will be 4.0, not 3.3, so update all references to 3.3.

11 years agoBroaden catch clause in extension building.
Ben Darnell [Sat, 7 Jun 2014 15:08:52 +0000 (11:08 -0400)] 
Broaden catch clause in extension building.

This should allow Tornado to be installed again on OSX with no
compiler available.

Closes #1074.

11 years agoMerge branch 'master' of github.com:tornadoweb/tornado
Ben Darnell [Wed, 4 Jun 2014 04:04:26 +0000 (00:04 -0400)] 
Merge branch 'master' of github.com:tornadoweb/tornado

11 years agoMerge branch 'branch3.2'
Ben Darnell [Wed, 4 Jun 2014 03:48:51 +0000 (23:48 -0400)] 
Merge branch 'branch3.2'

Conflicts:
docs/releases.rst
setup.py
tornado/__init__.py
tornado/websocket.py

11 years agoSet version number to 3.2.2 branch3.2 v3.2.2
Ben Darnell [Wed, 4 Jun 2014 03:30:18 +0000 (23:30 -0400)] 
Set version number to 3.2.2

11 years agoDocs for xsrf cookie change; 3.2.2 release notes.
Ben Darnell [Wed, 4 Jun 2014 03:16:00 +0000 (23:16 -0400)] 
Docs for xsrf cookie change; 3.2.2 release notes.

11 years agoMerge pull request #1069 from drewbrew/master
Ben Darnell [Tue, 3 Jun 2014 23:49:40 +0000 (19:49 -0400)] 
Merge pull request #1069 from drewbrew/master

ioloop.py: use itertools.count() as tiebreaker to preserve FIFO in case of tie

11 years agoioloop.py: use itertools.count() as tiebreaker to preserve FIFO in case of tie 1069/head
drewbrew [Tue, 3 Jun 2014 18:22:08 +0000 (13:22 -0500)] 
ioloop.py: use itertools.count() as tiebreaker to preserve FIFO in case of tie

Current implementation does not function as a FIFO.  When adding multiple
timeouts with the same deadline, order is currently consistently mangled in the
event of a garbage collect.

As suggested by Ben Darnell at
https://groups.google.com/forum/#!topic/python-tornado/w8aKm6ZabUQ/discussion,
we need to add a sequence number to the Timeout class to serve as tiebreaker.
This code uses the model suggested by
https://docs.python.org/2/library/heapq.html#priority-queue-implementation-notes,
which uses itertools.count() to serve as our counter.

11 years agoAdd threadedresolver configuration to tox.ini (it was already in travis)
Ben Darnell [Sun, 1 Jun 2014 22:45:10 +0000 (18:45 -0400)] 
Add threadedresolver configuration to tox.ini (it was already in travis)

11 years agoFix another ipv6 test that was flaky on travis due to port conflicts.
Ben Darnell [Sun, 1 Jun 2014 22:31:12 +0000 (18:31 -0400)] 
Fix another ipv6 test that was flaky on travis due to port conflicts.

11 years agoRefine logging in http1connection.py.
Ben Darnell [Sun, 1 Jun 2014 22:14:14 +0000 (18:14 -0400)] 
Refine logging in http1connection.py.

Exceptions raised by delegate methods go to app_log; all others to gen_log.

11 years agoRemove all use of async_callback in tornado.auth.
Ben Darnell [Sun, 1 Jun 2014 20:36:52 +0000 (16:36 -0400)] 
Remove all use of async_callback in tornado.auth.

This was swallowing exceptions before they could be given to the returned
Future.

11 years agoMerge pull request #1068 from patrickfuller/master
Ben Darnell [Sun, 1 Jun 2014 17:22:09 +0000 (10:22 -0700)] 
Merge pull request #1068 from patrickfuller/master

From #1067, updated Google Auth docs to reflect API changes

11 years agoUpdated Google Auth docs to reflect API changes 1068/head
Patrick Fuller [Wed, 28 May 2014 18:47:32 +0000 (13:47 -0500)] 
Updated Google Auth docs to reflect API changes

11 years agoAdd the option to request an older xsrf cookie version.
Ben Darnell [Tue, 27 May 2014 01:18:36 +0000 (21:18 -0400)] 
Add the option to request an older xsrf cookie version.

Fix an issue with v1 cookies on py32.

11 years agoChange the xsrf cookie format to be masked with a random salt.
Ben Darnell [Mon, 26 May 2014 19:44:58 +0000 (15:44 -0400)] 
Change the xsrf cookie format to be masked with a random salt.

This protects against the BREACH attack.

11 years agoSmall security improvements to xsrf tokens; add tests.
Ben Darnell [Mon, 26 May 2014 17:33:21 +0000 (13:33 -0400)] 
Small security improvements to xsrf tokens; add tests.

Use os.urandom(16) instead of uuid.uuid4(), to reclaim a few bits of
entropy.  Use _time_independent_equals for comparison.

11 years agoFix imports for the new version of trollius, which changed its package name.
Ben Darnell [Tue, 27 May 2014 00:41:52 +0000 (20:41 -0400)] 
Fix imports for the new version of trollius, which changed its package name.

11 years agoFix imports for the new version of trollius, which changed its package name.
Ben Darnell [Tue, 27 May 2014 00:41:52 +0000 (20:41 -0400)] 
Fix imports for the new version of trollius, which changed its package name.

11 years agoRun the sphinx tests under py3.4 instead of py2.7.
Ben Darnell [Mon, 26 May 2014 03:03:13 +0000 (23:03 -0400)] 
Run the sphinx tests under py3.4 instead of py2.7.

11 years agoDisallow non-absolute urls in origin field.
Ben Darnell [Mon, 26 May 2014 01:41:44 +0000 (21:41 -0400)] 
Disallow non-absolute urls in origin field.

Update docs for websocket check_origin.

11 years agoMerge remote-tracking branch 'rgbkrk/cross_origin' into merge
Ben Darnell [Mon, 26 May 2014 00:49:00 +0000 (20:49 -0400)] 
Merge remote-tracking branch 'rgbkrk/cross_origin' into merge

11 years agoDocument max_write_buffer_size.
Ben Darnell [Sun, 25 May 2014 20:52:29 +0000 (16:52 -0400)] 
Document max_write_buffer_size.

StreamBufferFullError is no longer an IOError, and is now used for
the read buffer as well.

11 years agoMerge remote-tracking branch 'methane/write-buffer-size'
Ben Darnell [Sun, 25 May 2014 20:34:41 +0000 (16:34 -0400)] 
Merge remote-tracking branch 'methane/write-buffer-size'

Conflicts:
tornado/iostream.py

11 years agoStream large response bodies from StaticFileHandler.
Ben Darnell [Sun, 25 May 2014 16:50:51 +0000 (12:50 -0400)] 
Stream large response bodies from StaticFileHandler.

The get_content interface is still synchronous so it's not a complete
solution, but this will keep the server from buffering the whole file in
memory while writing it out to the client.

Return Futures from the wsgi interface, allowing @gen.coroutine to be
used there in limited circumstances.

11 years agoImprove performance of HEAD requests on large static files.
Ben Darnell [Sun, 25 May 2014 16:24:55 +0000 (12:24 -0400)] 
Improve performance of HEAD requests on large static files.

StaticFileHandler would previously read the entire file and throw it
away just to compute its length; now it uses get_content_size()
instead().

Added extra validation in tests by performing both GET and HEAD
versions of all requests and ensuring the content headers match.

Closes #988.

11 years agoRemove HTTP method check from HTTPServerRequest._parse_body.
Ben Darnell [Sun, 25 May 2014 15:39:12 +0000 (11:39 -0400)] 
Remove HTTP method check from HTTPServerRequest._parse_body.

The semantics of a body are not well-defined for some methods,
but if a client sends a body with the correct content-type,
we might as well parse it no matter what the method.

Closes #1011.

11 years agoDoc and release note updates.
Ben Darnell [Sun, 25 May 2014 14:54:26 +0000 (10:54 -0400)] 
Doc and release note updates.

11 years agoFix syntax error in travis.yml
Ben Darnell [Sun, 25 May 2014 13:01:47 +0000 (09:01 -0400)] 
Fix syntax error in travis.yml

11 years agoAdd TwistedIOLoop test on python 3 to tox and travis.
Ben Darnell [Sun, 25 May 2014 04:48:15 +0000 (00:48 -0400)] 
Add TwistedIOLoop test on python 3 to tox and travis.

11 years agoAutopep8 formatting updates.
Ben Darnell [Sun, 25 May 2014 03:35:27 +0000 (23:35 -0400)] 
Autopep8 formatting updates.

11 years agoBump required autopep8 version.
Ben Darnell [Sun, 25 May 2014 03:24:55 +0000 (23:24 -0400)] 
Bump required autopep8 version.

This version can be installed on py3 but was having problems on py2.

11 years agoPyflakes cleanup.
Ben Darnell [Sun, 25 May 2014 03:23:46 +0000 (23:23 -0400)] 
Pyflakes cleanup.

Includes real python3 bugfixes for tornado.auth.FacebookMixin and
tornado.platform.twisted.

11 years agoSwitch to python 3.4 for maint/requirements.txt.
Ben Darnell [Sun, 25 May 2014 03:18:46 +0000 (23:18 -0400)] 
Switch to python 3.4 for maint/requirements.txt.

11 years agoUpdate maint/requirements.txt versions.
Ben Darnell [Sun, 25 May 2014 02:32:26 +0000 (22:32 -0400)] 
Update maint/requirements.txt versions.

Everything but autopep8, which seems to have trouble installing on py27.

11 years agoSkip dual-stack ipv4/ipv6 tests on travis.
Ben Darnell [Sat, 24 May 2014 21:47:14 +0000 (17:47 -0400)] 
Skip dual-stack ipv4/ipv6 tests on travis.

These tests occasionally fail (they bind to an unused ipv6 port but cannot
bind that same port on ipv4), and I'm not sure how to fix/workaround.

11 years agoAdd a future-based alternative to gen.Multi to avoid stack_context overhead.
Ben Darnell [Sat, 24 May 2014 21:40:23 +0000 (17:40 -0400)] 
Add a future-based alternative to gen.Multi to avoid stack_context overhead.

11 years agoTCPClient: connect without SSL and wrap the connection later.
Ben Darnell [Sat, 24 May 2014 21:00:53 +0000 (17:00 -0400)] 
TCPClient: connect without SSL and wrap the connection later.

This prevents us from potentially starting two SSL handshakes
at the same time.

11 years agoImplement IOStream.start_tls to convert an IOStream to an SSLIOStream.
Ben Darnell [Sat, 24 May 2014 20:38:37 +0000 (16:38 -0400)] 
Implement IOStream.start_tls to convert an IOStream to an SSLIOStream.

11 years agoBetter logging to diagnose this flaky test on travis.
Ben Darnell [Wed, 21 May 2014 02:34:20 +0000 (22:34 -0400)] 
Better logging to diagnose this flaky test on travis.

11 years agoAdd some logging to diagnose this flaky test on travis.
Ben Darnell [Tue, 20 May 2014 03:05:22 +0000 (23:05 -0400)] 
Add some logging to diagnose this flaky test on travis.

11 years agoChange an assert to an explicit exception.
Ben Darnell [Tue, 20 May 2014 02:00:15 +0000 (22:00 -0400)] 
Change an assert to an explicit exception.

Use normalized Http-Header-Case for X-Http-Reason header.

11 years agoMerge remote-tracking branch 'dano/master'
Ben Darnell [Tue, 20 May 2014 01:56:34 +0000 (21:56 -0400)] 
Merge remote-tracking branch 'dano/master'

11 years agoFixes based on code review. 1053/head
dano [Mon, 19 May 2014 15:38:23 +0000 (11:38 -0400)] 
Fixes based on code review.

Don't fall through if regex doesn't match.
Use 'X-HTTP-Reason' instead of 'Reason'.

11 years agoMake gen.Task a function returning a Future instead of a YieldPoint subclass.
Ben Darnell [Mon, 19 May 2014 03:19:41 +0000 (23:19 -0400)] 
Make gen.Task a function returning a Future instead of a YieldPoint subclass.

This improves performance of applications that mix Tasks and Futures
by only entering a stack context for the duration of the Tasks. It
also fixes an obscure regression (#1058).  This might get reverted before
the final release if any backwards-compatibility issues turn up, but
since the status quo also had a regression it's worth a try.

Closes #1058.

11 years agoRemove test_websocket_network_timeout.
Ben Darnell [Mon, 19 May 2014 01:57:27 +0000 (21:57 -0400)] 
Remove test_websocket_network_timeout.

It wasn't testing what it appeared to be (it was hitting exactly the
same code paths as test_websocket_network_fail on posix, but was failing
on windows).

Closes #1054.

11 years agoUse Resolver instead of socket.getaddrinfo to decide whether localhost is ipv6.
Ben Darnell [Mon, 19 May 2014 00:34:30 +0000 (20:34 -0400)] 
Use Resolver instead of socket.getaddrinfo to decide whether localhost is ipv6.

The results can differ with different resolvers.  Add a CaresResolver
configuration to tox (it was already in travis).

11 years agoRaise StreamClosedError instead of IOError for ECONNRESET.
Ben Darnell [Mon, 19 May 2014 00:20:29 +0000 (20:20 -0400)] 
Raise StreamClosedError instead of IOError for ECONNRESET.

This allows application code to only catch one kind of exception
(an ECONNRESET exception is raised from
tornado.test.httpserver_test.KeepAliveTest.test_pipeline_cancel
on linux but not on mac)

11 years agoFix tcpclient test when ipv6 is available but 'localhost' is only ipv4.
Ben Darnell [Sun, 18 May 2014 23:56:17 +0000 (19:56 -0400)] 
Fix tcpclient test when ipv6 is available but 'localhost' is only ipv4.

11 years agoAllow ipv6 in simple_httpclient by default.
Ben Darnell [Sun, 4 May 2014 23:05:07 +0000 (19:05 -0400)] 
Allow ipv6 in simple_httpclient by default.

Improve connection error handling (especially for SelectIOLoop).

11 years agoImplement the "happy eyeballs" algorithm for ipv4/ipv6 selection.
Ben Darnell [Sun, 4 May 2014 17:13:49 +0000 (13:13 -0400)] 
Implement the "happy eyeballs" algorithm for ipv4/ipv6 selection.

IOStream.connect's Future resolves to the stream itself,
which streamlines some connection scenarios.

11 years agoHack around mac ipv6 firewall problems in bind_sockets to reenable tests.
Ben Darnell [Sat, 3 May 2014 18:41:51 +0000 (14:41 -0400)] 
Hack around mac ipv6 firewall problems in bind_sockets to reenable tests.

Fix a test ResourceWarning.

11 years agoRefactor connection logic from simple_httpclient to a new tcpclient module.
Ben Darnell [Sat, 3 May 2014 15:40:01 +0000 (11:40 -0400)] 
Refactor connection logic from simple_httpclient to a new tcpclient module.

This is preparation for introducing connection pooling and better
handling of ipv6.

If an IOStream was closed due to an exception, its Futures will
now raise that exception instead of StreamClosedError.

11 years agoFix Tornado on Google App Engine.
Ben Darnell [Sat, 17 May 2014 14:56:35 +0000 (10:56 -0400)] 
Fix Tornado on Google App Engine.

Imports of tornado.ioloop have crept into more places, so the old
app engine policy of never importing these modules doesn't work.
Instead, we add guards around imports of unavailable modules
(fcntl, ssl, multiprocessing) so that everything is at least importable.

Closes #1059.

11 years agoPoint all links to the 'demos' directory to the stable branch instead of master.
Ben Darnell [Sat, 17 May 2014 14:19:17 +0000 (10:19 -0400)] 
Point all links to the 'demos' directory to the stable branch instead of master.

11 years agoDocument gen_test change.
Ben Darnell [Sat, 17 May 2014 14:17:01 +0000 (10:17 -0400)] 
Document gen_test change.

11 years agoMerge pull request #1061 from stj/master
Ben Darnell [Sat, 17 May 2014 14:04:02 +0000 (10:04 -0400)] 
Merge pull request #1061 from stj/master

Extended gen_test decorator to pass args and kwargs.

11 years agoExtended gen_test decorator to pass args and kwargs. 1061/head
Stefan Tjarks [Fri, 16 May 2014 23:03:01 +0000 (16:03 -0700)] 
Extended gen_test decorator to pass args and kwargs.
A use case might be a decorated test class that passes arguments to each class method, like mock.patch for instance.

11 years agoMerge remote-tracking branch 'upstream/master'
dano [Wed, 14 May 2014 15:14:28 +0000 (11:14 -0400)] 
Merge remote-tracking branch 'upstream/master'

11 years agoUse parse_response_start_line instead of re
dano [Wed, 14 May 2014 14:48:38 +0000 (10:48 -0400)] 
Use parse_response_start_line instead of re

11 years agoEnsure that travis test runs can see .coveragerc
Ben Darnell [Wed, 14 May 2014 01:07:38 +0000 (21:07 -0400)] 
Ensure that travis test runs can see .coveragerc

11 years agoMerge branch 'branch3.2'
Ben Darnell [Wed, 14 May 2014 01:05:29 +0000 (21:05 -0400)] 
Merge branch 'branch3.2'

Conflicts:
tornado/tcpserver.py

11 years agoUpdate links to github repo; add announcement mailing list.
Ben Darnell [Wed, 14 May 2014 00:51:23 +0000 (20:51 -0400)] 
Update links to github repo; add announcement mailing list.

11 years agoAlso exclude pycares from pypy on travis.
Ben Darnell [Wed, 14 May 2014 00:35:59 +0000 (20:35 -0400)] 
Also exclude pycares from pypy on travis.

11 years ago.travis.yml: don't install Twisted on 3.2 or pycurl on pypy.
Ben Darnell [Tue, 13 May 2014 23:57:43 +0000 (19:57 -0400)] 
.travis.yml: don't install Twisted on 3.2 or pycurl on pypy.

11 years agoFix .travis.yaml syntax error.
Ben Darnell [Tue, 13 May 2014 15:02:03 +0000 (11:02 -0400)] 
Fix .travis.yaml syntax error.

Remove deprecated --use-mirrors flag to pip.

11 years agoTwisted 14.0.0 is now (partially) installable on python 3, so test with it.
Ben Darnell [Tue, 13 May 2014 14:35:48 +0000 (10:35 -0400)] 
Twisted 14.0.0 is now (partially) installable on python 3, so test with it.

Consolidate the dependency section of the .travis.yml now that more of our
dependencies are cross-version.

11 years agoMerge pull request #1055 from schlamar/patch-1
Ben Darnell [Mon, 12 May 2014 18:49:57 +0000 (14:49 -0400)] 
Merge pull request #1055 from schlamar/patch-1

Test Python 3.4 on Travis.

11 years agoTest Python 3.4 on Travis. 1055/head
Marc Schlaich [Mon, 12 May 2014 08:00:35 +0000 (10:00 +0200)] 
Test Python 3.4 on Travis.

11 years agoDecouple read_from_buffer's search for the endpoint from consuming the data.
Ben Darnell [Mon, 12 May 2014 03:43:55 +0000 (23:43 -0400)] 
Decouple read_from_buffer's search for the endpoint from consuming the data.

This lets us call find_read_pos from read_to_buffer_loop, avoiding some
unnecessary reads (e.g. it previously took a minimum of two recv calls
to serve an http request, but now we can do it in one).

11 years agoUpdate documentation
dano [Mon, 12 May 2014 03:29:46 +0000 (23:29 -0400)] 
Update documentation

11 years agoIOStream: do not listen for close events if there is no close_callback.
Ben Darnell [Mon, 12 May 2014 00:23:33 +0000 (20:23 -0400)] 
IOStream: do not listen for close events if there is no close_callback.

HTTP1Connection now only registers its close callback when it is done
reading.  This improves performance for synchronous handlers, which no
longer interact with the IOLoop as often.

11 years agoAdd gen.moment, a yieldable object that resumes after one IOLoop iteration.
Ben Darnell [Sun, 11 May 2014 22:49:40 +0000 (18:49 -0400)] 
Add gen.moment, a yieldable object that resumes after one IOLoop iteration.

Use this between requests in HTTP1ServerConnection to keep one connection
from monopolizing the IOLoop when there are pipelined (or just fast) requests
available.  This was causing increased variance in benchmarks using "ab -k"
(it also increased throughput, for reasons that are not yet clear, so this
change reduces observed speed in these benchmarks).

11 years agoAnother test
dano [Sun, 11 May 2014 02:31:35 +0000 (22:31 -0400)] 
Another test

11 years agoAdd tests
dano [Sun, 11 May 2014 02:27:40 +0000 (22:27 -0400)] 
Add tests

11 years agoImprove custom reason code support.
dano [Sun, 11 May 2014 02:08:18 +0000 (22:08 -0400)] 
Improve custom reason code support.

Adds support for custom reason messages to curl_httpclient.
Make custom reason code HTTPError.message if one is available.