Re: [PATCH] Enable HTTP tunneling for streaming data where data is le ss than the buffering size

Graham Leggett <[email protected]> Sat, 03 May 2003 19:23:02 +0200
Newsgroups gmane.comp.apache.mod-proxy
Message-ID <[email protected]>
Conti, Chris wrote:

> We ran into a situation where a command-response protocol was being tunneled
> through HTTP (2 sockets 1 is an HTTP GET, the other an HTTP POST) that
> failed when passed through an Apache reverse proxy.  The HTTP requests are
> marked with keep-alive, but when the data passing from the server <
> AP_MIN_BYTES_TO_WRITE (8000 decimal) then the bucket brigade buffers the
> data instead of passing it on.
> 
> The guts of the patch are basically appending a flush bucket after every
> read(unless there is already an EOS) if the ProxyWriteThrough directive is
> set to On

This seems reasonable - typically Apache might want to buffer the 
response, but sometimes Apache shouldn't.

Can you post this patch for consideration on the [email protected] 
mailing list?

Regards,
Graham
-- 
-----------------------------------------
[email protected]		"There's a moon
					over Bourbon Street
						tonight..."