[CC'ing this to modperl list, this is something of general interest and
a good topic for an interesting thread]

> Just reading through your excellent mod_perl guide and the section regarding
> using accelerator/cache proxies made me think of the following question:
> 
> What about HTTP/1.1 and keepalive connections? In this case, I'd guess
> that the client will only close the connection after it has downloaded
> all the HTML it is interested in and thus the server and proxy
> connection might remain open for the duration of the session to the
> client? This would mean that the proxy does not provide an advantage at
> all. Correct?

Idealy, one of the big advantages proxy provides for mod_perl is downsteam
buffering. What happens is that mod_perl immediately generates the output,
hadles it to proxy to return to a slow user, which immediately allows to
close a connection. So the first question is how big your proxy buffer,
since if mod_perl cannot send it all to proxy it doesn't really helps.

You are talking about KeepAlive... Hmm, I think you are right, I should
have mentioned this point. Do you think the KeepAlive should be turned
off? Since there is no actually need for this option (all the static
objects are being served by a lighter process). But if the KeepAlive is
on, mod_perl will keep the connection open, till it timeouts or
terminated. So it breaks all the "improvements" down :(

If I'm not missing something, you've got a real case here. 

What do you think folks?

This issue should be really benchmarked... since there is lots of theories
but no numbers... 

Anyone has checked his ProxyBuffer size? How big can it be in squid and
mod_proxy? I saw a few folks reporting about limitation of the buffer
size. I really would like to have a better picture of this vague topic.
Anyone can share his experince, and shed some details on this topic?

Thanks!

> PS. I must admit not to have studied this in detail to see what would
> happen. I've only used proxies in the traditional mode and not as httpd
> accelerators.

_______________________________________________________________________
Stas Bekman  mailto:[EMAIL PROTECTED]    www.singlesheaven.com/stas  
Perl,CGI,Apache,Linux,Web,Java,PC at  www.singlesheaven.com/stas/TULARC
www.apache.org  & www.perl.com  == www.modperl.com  ||  perl.apache.org
single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com

Reply via email to