Apache keepalive
Michael Lee
michael.lee at zerustech.com
Fri Dec 21 12:52:59 CET 2007
Hi Poul,
I checked my varnishlog and here is the varnish log:
> 16 RxRequest c GET
> 16 RxURL c /
> 16 RxProtocol c HTTP/1.1
> ...
> 16 VCL_call c recv
> 16 VCL_return c lookup
> 16 VCL_call c hash
> 16 VCL_return c hash
> 16 HitPass c 1264349866
> 16 VCL_call c pass
> 16 VCL_return c pass
I noticed there is a "HitPass" in this transaction, could you please help on this?
BTW, I have customized the sub vcl_hash() as the following:
sub vcl_hash {
set req.hash += req.url;
set req.hash += req.http.host;
hash;
}
I don't know if it has any impacts on keeponlive.
Many thanks in advance,
Michael
Poul-Henning Kamp wrote:
> In message <476B9C33.2030508 at zerustech.com>, Michael Lee writes:
>
>> We noticed that when apache keepalive is "on", varnish does not
>> cache dynamic contents even we set the cache-control, pragram and
>> expires headers.
>>
>> But it's working when keepalive is set to "off"
>
> Check your varnishlog, if your transactions run into "pipe" handling,
> that would explain it.
>
--
Michael Lee / Managing Director / ZerusTech Ltd
Tel: +86 (21) 6428 3803
Fax: +86 (21) 6428 3805
Mobile: +86 139 1663 5259
Skype: zerustech
Gmail: zerustech at gmail.com
www.zerustech.com
Suite 819-820
807 Zhaojiabang Road
Shanghai
P.R.China
200030
More information about the varnish-commit
mailing list