Re: logging request time

2012-11-08 Thread Vladimir Stavrinov
On Wed, Oct 31, 2012 at 10:05:52PM +0100, Jorge NerĂ­n wrote: Well, currently I use an indirect method, the ss utility a quick'n'dirty perl one liner: ss -i -t 'sport = :80' |perl -e 'while () { if (m/send (.*?)([M|K|]bps) /){ ($s,$u)=($1,$2); $s=$s*100 if (Mbps eq $u);

Re: Assert error in VRT_r_req_backend_healthy()

2012-11-08 Thread Lasse Karstensen
Simon Lyall: I have just upgraded a couple of my caches from version 2.1 to 3.0.3 ( using centos5 RPMs). I notice that I'm getting a lot of crashes (about twice an hour on a lightly loaded machine) when previously I had none. [..] Nov 7 20:21:13 harvest varnishd[3290]: Child (5139) died

Re: Hashing on a particular cookie value

2012-11-08 Thread Paul A. Procacci
Thanks a lot Paul. Before I read this , I tried the following : hash_data(regsub(req.http.Cookie,^.*?mycookie=([^;]*);*.*$ , \1)); Your regex differs than mine. One negligible difference and one that I'll focus on. The negligible difference being the anchors ^ and $. They aren't necessary.

RE: Hashing on a particular cookie value

2012-11-08 Thread Soumendu Bhattacharya
== Your regex differs than mine. One negligible difference and one that I'll focus on. The negligible difference being the anchors ^ and $. They aren't necessary. For reference, my regex