]> git.ipfire.org Git - thirdparty/tornado.git/log
thirdparty/tornado.git
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.

11 years agoImprove performance by using Future interface when writing HTTP responses.
Ben Darnell [Sat, 10 May 2014 17:27:46 +0000 (13:27 -0400)] 
Improve performance by using Future interface when writing HTTP responses.

Previously, we passed a callback to IOStream.write() and also checked
IOStream.writing() to see if the write completed synchronously (which is
the common case).  If it did, we would complete the request immediately
but the write callback would remain on the IOLoop until its next iteration,
keeping the request state from being garbage collected.

In benchmarks, this would manifest as as something like a memory leak,
since benchmarks often handle many requests in one IOLoop iteration.
This slowed things down (by about 10% in my benchmarks) by increasing
pressure on the garbage collector.

11 years agoMerge pull request #1042 from moijes12/fix1033_2
Ben Darnell [Fri, 9 May 2014 00:54:42 +0000 (20:54 -0400)] 
Merge pull request #1042 from moijes12/fix1033_2

Changed _on_close method tornado/simple_httpclient.py to raise the error instead of raising an HTTPError

11 years agoAdd a test with newlines in template tags to control whitespace in output.
Ben Darnell [Thu, 8 May 2014 03:06:01 +0000 (23:06 -0400)] 
Add a test with newlines in template tags to control whitespace in output.

11 years agoMerge pull request #1045 from schlamar/fix-win-tests
Ben Darnell [Tue, 6 May 2014 12:57:17 +0000 (08:57 -0400)] 
Merge pull request #1045 from schlamar/fix-win-tests

Fixed tests on Windows.

11 years agoMerge pull request #1044 from schlamar/wouldblock-const
Ben Darnell [Tue, 6 May 2014 12:55:34 +0000 (08:55 -0400)] 
Merge pull request #1044 from schlamar/wouldblock-const

Use constant for blocking errnos.

11 years agoFixed tests on Windows. 1045/head
schlamar [Tue, 6 May 2014 09:35:51 +0000 (11:35 +0200)] 
Fixed tests on Windows.

11 years agoUse constant for blocking errnos. 1044/head
schlamar [Tue, 6 May 2014 09:20:37 +0000 (11:20 +0200)] 
Use constant for blocking errnos.

11 years agoMerge branch 'branch3.2'
Ben Darnell [Tue, 6 May 2014 02:53:07 +0000 (22:53 -0400)] 
Merge branch 'branch3.2'

Conflicts:
docs/releases.rst
setup.py
tornado/__init__.py
tornado/test/web_test.py
tornado/web.py

11 years agoGive credit to Joost Pol for reporting the security issue.
Ben Darnell [Tue, 6 May 2014 02:44:01 +0000 (22:44 -0400)] 
Give credit to Joost Pol for reporting the security issue.

11 years agoSet version number to 3.2.1 v3.2.1
Ben Darnell [Tue, 6 May 2014 02:28:23 +0000 (22:28 -0400)] 
Set version number to 3.2.1

11 years agov3.2.1 release notes
Ben Darnell [Tue, 6 May 2014 02:27:20 +0000 (22:27 -0400)] 
v3.2.1 release notes

11 years agoDocument the cookie versioning interface.
Ben Darnell [Tue, 6 May 2014 01:58:22 +0000 (21:58 -0400)] 
Document the cookie versioning interface.

11 years agoAdd a v2 secure cookie format.
Ben Darnell [Mon, 5 May 2014 02:59:12 +0000 (22:59 -0400)] 
Add a v2 secure cookie format.

This format fixes some weaknesses in the original format that would allow
characters to be shifted from the "value" field to the "name" or "timestamp"
fields.  It also upgrades the signature from HMAC-SHA1 to HMAC-SHA256,
adds an explicit version field, and adds an as-yet-unused field to
support key rotation in the future.

11 years agoAdd versioning parameters to secure_cookie/signed_value APIs.
Ben Darnell [Mon, 5 May 2014 00:03:09 +0000 (20:03 -0400)] 
Add versioning parameters to secure_cookie/signed_value APIs.

11 years agoMerge branch 'stable' into branch3.2
Ben Darnell [Tue, 6 May 2014 01:30:33 +0000 (21:30 -0400)] 
Merge branch 'stable' into branch3.2

11 years agoAdd SystemError to errors from compilation
Matthew Brett [Tue, 8 Apr 2014 18:23:21 +0000 (11:23 -0700)] 
Add SystemError to errors from compilation

OSX generates a SystemError from a missing compiler; trap with other
compilation errors.

11 years agoChanged tornado/simple_httpclient.py to raise the error instead of 1042/head
moijes12 [Sun, 4 May 2014 18:22:05 +0000 (23:52 +0530)] 
Changed tornado/simple_httpclient.py to raise the error instead of
storing the error message and then raising an HTTPError.
Changed the websocket tests for network_fail and network timeout to
expect an IOError instead of an HTTPError.

11 years agoRelax this timing-sensitive test
Ben Darnell [Sat, 3 May 2014 16:09:35 +0000 (12:09 -0400)] 
Relax this timing-sensitive test

11 years agoUpdate overview.rst with typos in nginx conf.
Abhishek Kumar Singh [Wed, 16 Apr 2014 09:06:33 +0000 (14:36 +0530)] 
Update overview.rst with typos in nginx conf.

Minor correction in the production nginx server conf with proxy_redirect as off; previously it was false.

11 years agoDocument @authenticated's behavior around query parameters.
Ben Darnell [Mon, 28 Apr 2014 03:20:16 +0000 (23:20 -0400)] 
Document @authenticated's behavior around query parameters.

Closes #998.

11 years agoMerge pull request #1017 from SuminAndrew/curl-dns-timeouts
Ben Darnell [Mon, 28 Apr 2014 03:15:19 +0000 (23:15 -0400)] 
Merge pull request #1017 from SuminAndrew/curl-dns-timeouts

fix timeouts less than 1 sec when libcurl is compiled without c-ares

11 years agoRemove ca-certificates bundle and instead depend on the certifi package.
Ben Darnell [Mon, 28 Apr 2014 01:03:08 +0000 (21:03 -0400)] 
Remove ca-certificates bundle and instead depend on the certifi package.

11 years agoMerge pull request #1021 from bdarnell/http_refactor
Ben Darnell [Sun, 27 Apr 2014 18:14:14 +0000 (14:14 -0400)] 
Merge pull request #1021 from bdarnell/http_refactor

Major HTTP refactoring for streaming uploads

11 years agoFix unix socket test on linux. 1021/head
Ben Darnell [Sun, 27 Apr 2014 16:58:40 +0000 (12:58 -0400)] 
Fix unix socket test on linux.

Unix socket addresses are bytes on linux (but str on mac).  This mostly
works but causes errors in py3's -bb strict mode.

11 years agoRemove the has_body flag from write_headers.
Ben Darnell [Sun, 27 Apr 2014 16:25:12 +0000 (12:25 -0400)] 
Remove the has_body flag from write_headers.

It was only used client-side and we can infer whether we need to add
a framing mechanism from the method instead.

11 years agoTest and document the legacy HTTPRequest.write interface.
Ben Darnell [Sun, 27 Apr 2014 15:36:54 +0000 (11:36 -0400)] 
Test and document the legacy HTTPRequest.write interface.

11 years agoMake HTTP1Connection and WSGIConnection subclasses of HTTPConnection.
Ben Darnell [Sun, 27 Apr 2014 04:31:30 +0000 (00:31 -0400)] 
Make HTTP1Connection and WSGIConnection subclasses of HTTPConnection.

11 years agoRemove unused protocol field from HTTP1ConnectionParams
Ben Darnell [Sun, 27 Apr 2014 04:07:15 +0000 (00:07 -0400)] 
Remove unused protocol field from HTTP1ConnectionParams

11 years agoDocument all the new HTTP stuff
Ben Darnell [Sun, 27 Apr 2014 03:56:16 +0000 (23:56 -0400)] 
Document all the new HTTP stuff

11 years agoMerge branch 'master' into http_refactor
Ben Darnell [Sun, 27 Apr 2014 00:32:10 +0000 (20:32 -0400)] 
Merge branch 'master' into http_refactor

Conflicts:
tornado/iostream.py

11 years agoUpdate docs for changes in 3.3.
Ben Darnell [Sun, 27 Apr 2014 00:13:46 +0000 (20:13 -0400)] 
Update docs for changes in 3.3.

11 years agoCatch up on next-release notes.
Ben Darnell [Sat, 26 Apr 2014 23:23:42 +0000 (19:23 -0400)] 
Catch up on next-release notes.

11 years agoReturn Futures from RequestHandler.flush and HTTP1Connection.write{,_headers}
Ben Darnell [Sat, 26 Apr 2014 23:11:09 +0000 (19:11 -0400)] 
Return Futures from RequestHandler.flush and HTTP1Connection.write{,_headers}

11 years agoAdd client-side support for Expect: 100-continue.
Ben Darnell [Sat, 26 Apr 2014 21:07:41 +0000 (17:07 -0400)] 
Add client-side support for Expect: 100-continue.

Don't send the 100-continue response if the header callback already sent
a response.

11 years agoCall the superclass's on_connection_close in this test.
Ben Darnell [Sat, 26 Apr 2014 18:39:59 +0000 (14:39 -0400)] 
Call the superclass's on_connection_close in this test.

This fixes the last py3.3 uncollectable garbage warning.

11 years agoAdd on_close to HTTPServerConnectionDelegate.
Ben Darnell [Sat, 26 Apr 2014 18:26:41 +0000 (14:26 -0400)] 
Add on_close to HTTPServerConnectionDelegate.

Add close_all_connections method to HTTPServer for testing cleanup.
On Python versions before 3.4, the GC has problems with generators,
so the previous approach of closing all the file descriptors and
leave the rest to the GC no longer works.  (Only Python 3.3 prints
the uncollectable garbage warnings, but the problem is present
in earlier versions).

11 years agoAdd on_connection_close to the HTTPMessageDelegate interface.
Ben Darnell [Sat, 26 Apr 2014 17:06:15 +0000 (13:06 -0400)] 
Add on_connection_close to the HTTPMessageDelegate interface.

This allows handlers to detect when the connection was closed during
the upload of the request body.

11 years agoHelp out the CPython GC by clearing some references in IOLoop.close.
Ben Darnell [Mon, 21 Apr 2014 04:26:40 +0000 (00:26 -0400)] 
Help out the CPython GC by clearing some references in IOLoop.close.

This prevents some of the ResourceWarnings from the test suite on python
3.3 (older versions didn't report the leaks; newer versions are better
at freeing generators).  Since this is in IOLoop.close, it mainly
affects tests.

11 years agoMove HTTP/1.0 Connection: keep-alive behavior to http1connection.
Ben Darnell [Mon, 21 Apr 2014 03:26:11 +0000 (23:26 -0400)] 
Move HTTP/1.0 Connection: keep-alive behavior to http1connection.

Also remove the supports_http_1_1 check from GzipContentEncoding
since versions don't really matter with the accept-encoding check.

11 years agoMove address manipulation from HTTP1Connection to HTTPServer.
Ben Darnell [Sun, 20 Apr 2014 21:01:43 +0000 (17:01 -0400)] 
Move address manipulation from HTTP1Connection to HTTPServer.

The connection now contains only an opaque 'origin' object to which
the caller can attach address info.  This object can also be mutated
as in HTTPServer's xheader support.

11 years agoClean up and comment http1connection internals.
Ben Darnell [Sun, 20 Apr 2014 20:16:39 +0000 (16:16 -0400)] 
Clean up and comment http1connection internals.

Be specific about read/write vs request/response; the code moved from
HTTPServer often conflated the two.

11 years agoMake HTTP1Connection single-use-only.
Ben Darnell [Sun, 20 Apr 2014 17:58:49 +0000 (13:58 -0400)] 
Make HTTP1Connection single-use-only.

The server loop is now on a separate HTTP1ServerConnection class.

11 years agoSynchronize chunk size between HTTP1Connection and IOStream.
Ben Darnell [Sun, 20 Apr 2014 14:28:23 +0000 (10:28 -0400)] 
Synchronize chunk size between HTTP1Connection and IOStream.

Increase IOStream default chunk size to 64KB.

11 years agoRemove HTTPServer.__init__'s **kwargs.
Ben Darnell [Sun, 20 Apr 2014 14:22:32 +0000 (10:22 -0400)] 
Remove HTTPServer.__init__'s **kwargs.

New keyword arguments to this constructor are no longer likely to
be simple pass-through arguments to TCPServer.

11 years agoAdd max_body_size and body_timeout limits to http1connection.
Ben Darnell [Sun, 20 Apr 2014 05:01:20 +0000 (01:01 -0400)] 
Add max_body_size and body_timeout limits to http1connection.

These limits can be set on a per-request basis during headers_received.

11 years agoOptimize gen.with_timeout for tornado futures.
Ben Darnell [Sun, 20 Apr 2014 01:22:43 +0000 (21:22 -0400)] 
Optimize gen.with_timeout for tornado futures.

We can avoid some IOLoop and stack_context interactions if we know
that the Future will resolve on the IOLoop's thread.

11 years agoTimeout micro-optimizations.
Ben Darnell [Sun, 20 Apr 2014 00:13:40 +0000 (20:13 -0400)] 
Timeout micro-optimizations.

Use the (C) timedelta.total_seconds function when available.  But it's
still a bit faster to use numeric timeouts instead of back-and-forth
through timedelta, so do that instead in http1connection.

11 years agoUse add_callback_from_signal in benchmark.py's sigchld handler.
Ben Darnell [Sat, 19 Apr 2014 22:51:36 +0000 (18:51 -0400)] 
Use add_callback_from_signal in benchmark.py's sigchld handler.

This would manifest as an occasional deadlock when an 'ab' process
finished.

11 years agoDon't log errors about content-length mismatch when the connection closes.
Ben Darnell [Sat, 19 Apr 2014 20:04:53 +0000 (16:04 -0400)] 
Don't log errors about content-length mismatch when the connection closes.

11 years agoAdd a max_bytes to one remaining read_until in http1connection.
Ben Darnell [Sat, 19 Apr 2014 19:05:56 +0000 (15:05 -0400)] 
Add a max_bytes to one remaining read_until in http1connection.

11 years agoRead less aggressively in IOStream.
Ben Darnell [Sat, 19 Apr 2014 02:16:55 +0000 (22:16 -0400)] 
Read less aggressively in IOStream.

Previously, we would drain the socket buffer into the IOStream read buffer
before trying to satisfy application requests.  This would result in
unnecessary memory use, and on a fast network reads could fail because the
buffer would fill up.  Now we stop reading when we can satisfy the current
request (at least for read_bytes and read_until with max_bytes; unbounded
read_until still reads aggressively).

This commit includes a change to IOStream close_callback semantics.  Since
the only way to reliably detect a closed connection (across all IOLoop
implementations) is to read past the end of the stream, the IOStream will
not detect a closed connection while there is some buffered data that could
satisfy a future read.

Closes #772.

11 years agoMerge pull request #1037 from toanant/patch-1
Ben Darnell [Wed, 16 Apr 2014 13:27:13 +0000 (09:27 -0400)] 
Merge pull request #1037 from toanant/patch-1

Update overview.rst with typos in nginx conf.

11 years agoUpdate overview.rst with typos in nginx conf. 1037/head
Abhishek Kumar Singh [Wed, 16 Apr 2014 09:06:33 +0000 (14:36 +0530)] 
Update overview.rst with typos in nginx conf.

Minor correction in the production nginx server conf with proxy_redirect as off; previously it was false.

11 years agoAdd a `streaming` option to _run_read_callback and move all calls to _consume
Ben Darnell [Mon, 14 Apr 2014 01:25:10 +0000 (21:25 -0400)] 
Add a `streaming` option to _run_read_callback and move all calls to _consume
into that method.

11 years agoFix IOStream.reading when Futures are used.
Ben Darnell [Mon, 14 Apr 2014 00:52:26 +0000 (20:52 -0400)] 
Fix IOStream.reading when Futures are used.

Reduce some duplication in IOStream _handle_read and _try_inline_read.

11 years agoMerge pull request #1034 from kouki-dan/work
bdarnell [Sun, 13 Apr 2014 15:22:55 +0000 (11:22 -0400)] 
Merge pull request #1034 from kouki-dan/work

Delete description for cookie capacity

11 years agoDelete description for cookie capacity 1034/head
Kouki Saito [Wed, 9 Apr 2014 10:31:27 +0000 (19:31 +0900)] 
Delete description for cookie capacity

11 years agoMerge pull request #1030 from matthew-brett/fix-osx-no-compiler
bdarnell [Wed, 9 Apr 2014 01:13:22 +0000 (21:13 -0400)] 
Merge pull request #1030 from matthew-brett/fix-osx-no-compiler

Add SystemError to errors from compilation

11 years agoMerge pull request #1029 from daftshady/master
bdarnell [Wed, 9 Apr 2014 01:12:12 +0000 (21:12 -0400)] 
Merge pull request #1029 from daftshady/master

fixed broken reference link