varnish Connection: close and IE6

Rogério Schneider stockrt at gmail.com
Mon Sep 21 19:44:27 CEST 2009


Václav, you should read this two tickets:

http://varnish.projects.linpro.no/ticket/492
http://varnish.projects.linpro.no/ticket/235

The 492 may be a better fix for your problem, better than "if
((tmp_timeout - last_timeout) > 0.1)".
There we have patches for 2.0.4 too.

The only problem I can see with the trick you made, is that you are
cleaning sockets too frequently, and this can make your varnish
somewhat slow on higher loads.

Good luck,
Rogério Schneider

2009/9/21 Václav Bílek <v.bilek at 1art.cz>:
>
>>
>>
>> With knowledge of that we dont know exactly how to patch for disabling
>> keepalive we tried nasty hack:
>>
>> diff bin/varnishdcache_acceptor_epoll.c
>> bin/varnishdcache_acceptor_epoll.c.new
>> 114c114
>> <               deadline = TIM_real() - params->sess_timeout;
>> ---
>>> //            deadline = TIM_real() - params->sess_timeout;
>> 117c117
>> <                       if (sp->t_open > deadline)
>> ---
>>> //                    if (sp->t_open > deadline)
>>
>>
>> it worked in testing enviroment but in real trafic it was even worse
>> (IE6 hanging for long time).
>
> as we try to disble client side keepalive we made change in
> cache_acceptor_epoll.c by disabling sesion timeout chceck and shorting
> this timeout:
> if ((tmp_timeout - last_timeout) > 60)
> to:
> if ((tmp_timeout - last_timeout) > 0.1)
>
> and it looks like it solved our problem ...
>
> is there any problem we should be expecting on high load after this
> modification?
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>



-- 
Rogério Schneider

MSN: stockrt at hotmail.com
GTalk: stockrt at gmail.com
TerraVoip: stockrt
Skype: stockrt
http://stockrt.github.com



More information about the varnish-misc mailing list