You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modproxy-dev@apache.org by Graham Leggett <mi...@sharp.fm> on 2001/03/30 18:53:52 UTC
[PATCH] KeepAlive support - first try
Hi all,
The attached two patches implement KeepAlive support.
I don't want to commit these just yet until a few people have given it a
look-see, as there are a few outstanding problems with it.
Known Bugs:
- Lack of DECHUNK support from downstream server.
If a downstream server sends a response that is chunked, there is no way
for the proxy to determine the content length. As a result the
connection between the proxy and the downstream server hangs until the
downstream server times out it's connection, causing a delay.
There is DECHUNK filter inside Apache - but it depends on a request_rec
being available. In the ap_proxy_http_handler() there is only a conn_rec
defined, but no request_rec. Any ideas on the correct way to fix this?
- Connection fails after HEAD request.
If a connection is made to a reverse proxy, and a HEAD request is sent,
this request is completed successfully. The problem is that the next
request (on the same keepalive connection) will fail with a "Document
contains no data" on line 593 of proxy_http.c.
If a third request is sent, this request will work - it would seem that
the request directly following a HEAD request (and I suspect any request
that returns no body) always fails.
I have tried to track this problem down with no success :(
Regards,
Graham
--
-----------------------------------------
minfrin@sharp.fm "There's a moon
over Bourbon Street
tonight..."