Re: Using varnish

2008-03-03 Thread Fredrik Nygren
I'm a member of the development team at Gota Media which runs four swedish newspapers (Barometern.se, BLT.se, BT.se and SMP.se). Right now we are evaluating Varnish and it looks good. I also know that SvD.se runs Varnish. Regards Fredrik Nygren Gota Media On 13 feb 2008, at 17.36, Anders

Re: Using varnish

2008-03-03 Thread Fredrik Nygren
I'm a member of the development team at Gota Media which runs four swedish newspapers (Barometern.se, BLT.se, BT.se and SMP.se). Right now we are evaluating Varnish and it looks good. Regards Fredrik Nygren Gota Media On 13 feb 2008, at 18.58, Erik Torlen wrote: Do you just want to know a

Re: vcl-mode for emacs

2008-03-03 Thread Dag-Erling Smørgrav
Stig Sandbeck Mathisen [EMAIL PROTECTED] writes: I've created a vcl-mode for emacs. It does indenting and syntax highlighting. This is great, thanks! My only complaint so far is that it considers vcl_* keywords when in fact they are identifiers (you can define your own subs as well, not just

Re: VCL purge

2008-03-03 Thread Dag-Erling Smørgrav
André Øien Langvand [EMAIL PROTECTED] writes: What I want is when a client sends e.g Pragma: no-cache, I want warnish to fetch from backend and insert, not only do a pass. In order to prevent Varnish from serving a cached object, you need to purge it already in vcl_recv... which version are

Re: error page not delivered

2008-03-03 Thread Dag-Erling Smørgrav
Ramon A Hermon [EMAIL PROTECTED] writes: I am not sure how you can tell that I have 2 caches running, if by cache you mean varnish instances then yes. However I get the same result if I shut one down. Because I misread your email (you wrote case #1 and case #2, I assumed you meant two

Re: Deliver ReqEnd in http header

2008-03-03 Thread Dag-Erling Smørgrav
Erik [EMAIL PROTECTED] writes: Okey... I started to add some things that looked ok to me. But I have a feeling that I cannot use string. Here is what I did: On line 551 in vcc_fixed_token.c: [...] You need to edit vcc_gen_fixed_token.tcl instead. That's why it says the following right at

Re: Blank pages with HTTP/1.0

2008-03-03 Thread Dag-Erling Smørgrav
Fredrik Nygren [EMAIL PROTECTED] writes: I have a couple of servers with Varnish 1.1.2-5 installed. Some visitors has reported a blank page when they are visiting us. What I can se from our logs the problem seems to be related to the visitors HTTP protocol version. Requests with HTTP/1.0 gets

Re: varnish-misc Digest, Vol 23, Issue 25

2008-03-03 Thread Dag-Erling Smørgrav
Fredrik Nygren [EMAIL PROTECTED] writes: I guess its the same problem that ive had, and there is a patch regarding it; http://varnish.projects.linpro.no/ticket/197 The patch in the ticket is incorrect. The revision numbers for the correct fix are in the audit trail. DES -- Dag-Erling

Re: VCL purge

2008-03-03 Thread Dag-Erling Smørgrav
André Øien Langvand [EMAIL PROTECTED] writes: Yes, that was my thought. Besides an if (req.http.Pragma ~ no-cache) in vcl_recv how can i purge the requested URL (and host)?. purge_hash() and purge_url(), as documented in vcl(7). DES -- Dag-Erling Smørgrav Senior Software Developer Linpro AS -

Re: VCL purge

2008-03-03 Thread Dag-Erling Smørgrav
André Øien Langvand [EMAIL PROTECTED] writes: Yep, and as mentioned in the first mail, I've tried to use both req.url and req.http.host in diffrent combinations in purge_hash() without any luck. purge_hash() wants the object's hash string, which is something like req.url + '#' + req.host. If

Re: obj.tll as string

2008-03-03 Thread Dag-Erling Smørgrav
Dag-Erling Smørgrav [EMAIL PROTECTED] writes: Anders Vännman [EMAIL PROTECTED] writes: String representation of 'obj.ttl' not implemented yet Yes, obj.ttl is a double, and Varnish lacks code to convert a double to a string. I'll get on it right away. Fixed in trunk (r2546-2547). I haven't

Re: VCL purge

2008-03-03 Thread André Øien Langvand
Thank you, that makes sense now. However, I am still not able to make it work. E.g using purge_hash(req.url + '#' + req.http.host + '#$'); throws me an syntax error, failing at the apostrophe ('). Also tried diffrent variations of quotation marks and backslashes. Is the escaping wrong? -- André

Re: VCL purge

2008-03-03 Thread André Øien Langvand
Thank you, that makes sense now. However, I am still not able to make it work. E.g using purge_hash(req.url + '#' + req.http.host + '#$'); throws me an syntax error, failing at the apostrophe ('). Also tried diffrent variations of quotation marks and backslashes. Is the escaping wrong? -- André

Re: Varnishlogging

2008-03-03 Thread Erik Torlen
Well C then :P Dag-Erling Smørgrav skrev: Erik [EMAIL PROTECTED] writes: Ah ok, I see :( Unfortunately i'm not a c++ guru so I can just cross my fingers and hope that some handy guy writes a patch. Actually, there isn't a single line of C++ code in Varnish. You must be thinking

RE: Child dying with Too many open files

2008-03-03 Thread Andrew Knapp
I'm actually getting this a lot more frequently while running trunk (r2544). Every time the child dies it's cleaning out the cache and starting over. Right now it's happening about every 15 seconds, which seems crazy. Any ideas? -Andy -Original Message- From: [EMAIL PROTECTED]