RE: Child dying with "Too many open files"

2008-03-03 Thread Andrew Knapp
I've been looking at this more, and no combination of NFILES and fs.file-max seem to fix the problem. When I run `varnishlog -i Debug` along with the varnishd process, I get tons and tons of these: "Accept failed errno=24" Which is the same as the "Too many open files" error I believe. Is anyone

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] [mailt

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 > b

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é Øi

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é Øi

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).

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.

Re: VCL purge

2008-03-03 Thread André Øien Langvand
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. Using purge_url(), it seems to be working quite nice with purge_url(req.url), but I would really prefer to use purge_hash(). -- André Øien Langvand <

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

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: 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

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 rig

Re: Varnishlogging

2008-03-03 Thread Dag-Erling Smørgrav
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 of Squid... DES -- Dag-Erling Smørgrav Senior Softwa

Re: still trying to purge

2008-03-03 Thread Dag-Erling Smørgrav
Charlie Farinella <[EMAIL PROTECTED]> writes: > For the moment I have given up trying to do the http purge thing and > am trying to find a workaround. I have the following shell script: > [...] What's wrong with varnishadm(1)? DES -- Dag-Erling Smørgrav Senior Software Developer Linpro AS - www

Re: VCL purge

2008-03-03 Thread André Øien Langvand
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)?. I'm running the latest trunk. -- André Øien Langvand <[EMAIL PROTECTED]> - PGP: 0x7B1E3468 Systemadministrator - Idium AS - http://www.idium.no Dag-Erling Smørgrav w

Re: obj.tll as string

2008-03-03 Thread Dag-Erling Smørgrav
"Anders Vännman" <[EMAIL PROTECTED]> writes: > I tried this code in vcl_fetch in my vcl.conf, but it doesnt > work. We are running varnish-1.1.2 > > I get error > > String representation of 'obj.ttl' not implemented yet Yes, obj.ttl is a double, and Varnish lacks code to convert a double to a stri

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: 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

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: 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 sw

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 V