[Twisted-Python] question about twisted web2

i may not understand all this very well, but, if i remember correctly, http 1.1 supports multiple requests over the same connection to speed things up.. but http://twistedmatrix.com/projects/web/documentation/howto/web-overview.htmll... me to believe it closes the connection after each request.. but twisted web2, otoh, is supposed to have full 1.1 support.. does this mean it won't close the connection after each request? if so, i'd like to use it for that reason, but then, according to http://twistedmatrix.com/trac/wiki/TwistedWeb2 web2 isn't very fast. i don't know if their benchmarks take under consideration realistic conditions in which multiple requests can be made over a single tcp connection. so should i use web2, and if not, is there any way to do what i want using twisted.web, and if not, what python web framework can i use that does do what i want and is otherwise as fast as twisted web?

i gather that twisted web is http 1.0, and http 1.0 doesn't support http pipelining, so i assume twisted web doesn't support it twisted web2 says it fully supports 1.1, and 1.1 servers are required to support http pipelining, so i assume twisted web2 supports it so with a client that supports pipelining, wouldn't twisted web2 be much faster (for pages that have a lot of small images)? also, does twisted web2 support pipelining responses or only requests? On Mon, Apr 21, 2008 at 8:20 AM, inhahe <inhahe@gmail.com> wrote:

On Monday 21 April 2008, inhahe wrote:
i gather that twisted web is http 1.0, and http 1.0 doesn't support http pipelining, so i assume twisted web doesn't support it
Actually, twisted.web does support some HTTP 1.1 features. Looking at twisted/web/http.py, I think pipelining is supported.
In our setup, we use Apache to serve all static data. For dynamic data, Apache acts as a reverse proxy and forwards requests to twistd.
also, does twisted web2 support pipelining responses or only requests?
As far as I know, pipelining means re-using the same TCP connection for multiple request/response cycles. If the requests are pipelined, there is only a single TCP socket open through which responses can be sent, so they must be pipelined as well. Bye, Maarten

* Maarten ter Huurne <maarten@treewalker.org> [2008-04-22 02:25:15 +0200]:
Pipelining refers to sending another request before the previous response has been received; connection reuse is a separate feature, although obviously pipelining relies on connection reuse. -- mithrandi, i Ainil en-Balandor, a faer Ambar

i gather that twisted web is http 1.0, and http 1.0 doesn't support http pipelining, so i assume twisted web doesn't support it twisted web2 says it fully supports 1.1, and 1.1 servers are required to support http pipelining, so i assume twisted web2 supports it so with a client that supports pipelining, wouldn't twisted web2 be much faster (for pages that have a lot of small images)? also, does twisted web2 support pipelining responses or only requests? On Mon, Apr 21, 2008 at 8:20 AM, inhahe <inhahe@gmail.com> wrote:

On Monday 21 April 2008, inhahe wrote:
i gather that twisted web is http 1.0, and http 1.0 doesn't support http pipelining, so i assume twisted web doesn't support it
Actually, twisted.web does support some HTTP 1.1 features. Looking at twisted/web/http.py, I think pipelining is supported.
In our setup, we use Apache to serve all static data. For dynamic data, Apache acts as a reverse proxy and forwards requests to twistd.
also, does twisted web2 support pipelining responses or only requests?
As far as I know, pipelining means re-using the same TCP connection for multiple request/response cycles. If the requests are pipelined, there is only a single TCP socket open through which responses can be sent, so they must be pipelined as well. Bye, Maarten

* Maarten ter Huurne <maarten@treewalker.org> [2008-04-22 02:25:15 +0200]:
Pipelining refers to sending another request before the previous response has been received; connection reuse is a separate feature, although obviously pipelining relies on connection reuse. -- mithrandi, i Ainil en-Balandor, a faer Ambar
participants (3)
-
inhahe
-
Maarten ter Huurne
-
Tristan Seligmann