From ssm at linpro.no Fri Feb 1 11:14:16 2008 From: ssm at linpro.no (Stig Sandbeck Mathisen) Date: Fri, 01 Feb 2008 12:14:16 +0100 Subject: Not caching immediately? In-Reply-To: <2c7df3ed0801311514h1faa5f1dq573ce0ef5a193421@mail.gmail.com> (Aaron Pfeifer's message of "Thu, 31 Jan 2008 18:14:24 -0500") References: <2c7df3ed0801311348t759eb02eyf7cb5cfaaf567d3f@mail.gmail.com> <2c7df3ed0801311514h1faa5f1dq573ce0ef5a193421@mail.gmail.com> Message-ID: <7xir19lyif.fsf@iostat.linpro.no> "Aaron Pfeifer" writes: > (1) Upgrade to trunk (I was using 1.1.2) May not be the best choice for all, I think > (2) Add "set req.http.connection = "close";" immediately before the > pipe for a POST Would this be an appropriate config snippet? vcl_pipe { set req.http.connection = "close"; } -- Stig Sandbeck Mathisen, Linpro From aaron.pfeifer at gmail.com Fri Feb 1 19:09:57 2008 From: aaron.pfeifer at gmail.com (Aaron Pfeifer) Date: Fri, 1 Feb 2008 14:09:57 -0500 Subject: Not caching immediately? In-Reply-To: <7xir19lyif.fsf@iostat.linpro.no> References: <2c7df3ed0801311348t759eb02eyf7cb5cfaaf567d3f@mail.gmail.com> <2c7df3ed0801311514h1faa5f1dq573ce0ef5a193421@mail.gmail.com> <7xir19lyif.fsf@iostat.linpro.no> Message-ID: <2c7df3ed0802011109r46918505y31ee48233b21dcdf@mail.gmail.com> Good question. I actually tried that and it didn't seem to have the same effect. I didn't try diving into why it wouldn't have the same effect as the config I'm currently using: sub vcl_recv { ...stuff to determine whether to lookup... if (req.request == "POST") { set req.http.connection = "close"; pipe; } } On Feb 1, 2008 6:14 AM, Stig Sandbeck Mathisen wrote: > "Aaron Pfeifer" writes: > > > (1) Upgrade to trunk (I was using 1.1.2) > > May not be the best choice for all, I think > > > (2) Add "set req.http.connection = "close";" immediately before the > > pipe for a POST > > Would this be an appropriate config snippet? > > vcl_pipe { > set req.http.connection = "close"; > } > > -- > Stig Sandbeck Mathisen, Linpro > _______________________________________________ > varnish-misc mailing list > varnish-misc at projects.linpro.no > http://projects.linpro.no/mailman/listinfo/varnish-misc > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ric at digitalmarbles.com Sun Feb 3 06:10:12 2008 From: ric at digitalmarbles.com (Ricardo Newbery) Date: Sat, 2 Feb 2008 22:10:12 -0800 Subject: hash with Accept-Encoding Message-ID: <56F36529-29BF-417F-B314-6C72127751EA@digitalmarbles.com> I came across this line in an example vcl which confused me... sub vcl_hash { set req.hash += req.http.Accept-Encoding; } This line seemed superfluous to me since it was my impression that varnish already took care of this automatically as long as the Vary header was set correctly. Is this not the case? Ric From phk at phk.freebsd.dk Sun Feb 3 08:38:06 2008 From: phk at phk.freebsd.dk (Poul-Henning Kamp) Date: Sun, 03 Feb 2008 08:38:06 +0000 Subject: hash with Accept-Encoding In-Reply-To: Your message of "Sat, 02 Feb 2008 22:10:12 PST." <56F36529-29BF-417F-B314-6C72127751EA@digitalmarbles.com> Message-ID: <14403.1202027886@critter.freebsd.dk> In message <56F36529-29BF-417F-B314-6C72127751EA at digitalmarbles.com>, Ricardo N ewbery writes: > >I came across this line in an example vcl which confused me... > >sub vcl_hash { > set req.hash += req.http.Accept-Encoding; >} > > >This line seemed superfluous to me since it was my impression that >varnish already took care of this automatically as long as the Vary >header was set correctly. Is this not the case? Correct. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk at FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From rhermon at chicagosuntimes.com Tue Feb 5 17:42:50 2008 From: rhermon at chicagosuntimes.com (Ramon A Hermon) Date: Tue, 05 Feb 2008 11:42:50 -0600 Subject: error page not delivered Message-ID: <47A8A01A.3030900@chicagosuntimes.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I am unable to get varnish to deliver the customized error page when requesting a non-existent url. For instance: If I request http://mysite/xyz ( request to http://mysite/xyz/notthere.html also fails) results in a blank page. apache error.log = [Tue Feb 05 10:54:42 2008] [debug] mod_cache.c(129): Adding CACHE_SAVE filter for /xyz/ [Tue Feb 05 10:54:42 2008] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL filter for /xyz/ [Tue Feb 05 10:54:42 2008] [debug] mod_cache.c(509): cache: /xyz/ not cached. Reason: Response status 302 [Tue Feb 05 10:54:42 2008] [debug] mod_cache.c(129): Adding CACHE_SAVE filter for /xyz/index.html [Tue Feb 05 10:54:42 2008] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL filter for /xyz/index.html [Tue Feb 05 10:54:42 2008] [debug] mod_cache.c(509): cache: /xyz/index.html not cached. Reason: Response status 404 apache access.log = 192.168.130.6 - - [05/Feb/2008:10:54:42 -0600] "GET /xyz/ HTTP/1.1" 302 - - "-" "Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.8 (like Gecko)" 192.168.130.6 - - [05/Feb/2008:10:54:42 -0600] "GET /xyz/index.html HTTP/1.1" 404 450 "-" "Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.8 (like Gecko)" in contrast: http://mysite/xyz/index.htm results in the proper error page being displayed. apache error.log = [Tue Feb 05 10:58:12 2008] [debug] mod_cache.c(129): Adding CACHE_SAVE filter for /xyz/index.htm [Tue Feb 05 10:58:12 2008] [debug] mod_cache.c(136): Adding CACHE_REMOVE_URL filter for /xyz/index.htm [Tue Feb 05 10:58:14 2008] [debug] mod_cache.c(509): cache: /xyz/index.htm not cached. Reason: Response status 404 apache access.log = 192.168.130.6 - - [05/Feb/2008:10:58:12 -0600] "GET /xyz/index.htm HTTP/1.1" 404 450 "-" "Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.8 (like Gecko)" All test are successful w/o Varnish and going straight to apache. Any ideas will be greatly appreciated. Regards, Ramon A Hermon -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHqKAa2nBs00uoHhwRAqsqAJ9nz165J7w3xF1xyUa2T0TZxHNAcQCfTR9T EqFW1XhGrn+tnqY9ydAEBFE= =MqYZ -----END PGP SIGNATURE----- From janis.putrams at delfi.lv Wed Feb 6 13:29:43 2008 From: janis.putrams at delfi.lv (Janis Putrams) Date: Wed, 6 Feb 2008 15:29:43 +0200 Subject: Assert error in exp_hangman() Message-ID: <200802061529.44110.janis.putrams@delfi.lv> Hi! Child dies from time to time. Is there a solution to this? 15:35:04 root[pts/2]@slow ~# varnishd -V varnishd (varnish-1.1.2) ... Child said (2, 28732): <magic == 0x32851d42) not true. errno = 0 (Success) >> Cache child died pid=28732 status=0x86 Clean child ... Thanks, Janis Putrams From marco.molinari at gmail.com Thu Feb 7 15:30:53 2008 From: marco.molinari at gmail.com (Marco Molinari) Date: Thu, 7 Feb 2008 16:30:53 +0100 Subject: A few users see a blank page In-Reply-To: <47A91407.5000703@openplans.org> References: <47A91407.5000703@openplans.org> Message-ID: On Feb 6, 2008 2:57 AM, Arne Kepp wrote: > (Maybe this should be on -misc ?) Ok, moved. Thank you for your reply. I'm using PHP and I had it gzip'ing, then I tried to use mod_deflate, but they're reporting the problem anyway. But I think the problem is similar. In fact, thanks to a user, I did some tests and I discovered that: - they can see static content, even html, any length - they can see content generated by PHP if it's smaller than 7500 bytes - they get a blank page if PHP output is more than 8000 bytes - they see everything if the accelerator is Squid I disabled compression during these tests. Maybe your users see a blank page just sometimes, when they request a page that, compressed, is larger than 7500/8000 bytes? Sorry I don't have a precise number, but I didn't want to stress my user too much, but I suppose I can work that out. I can't replicate this myself; I tried to use Squid (even different versions) on the client side, to replicate their setup, but I just see everything. My VCL is quite simple, too, lookup for images/css and pipe/pass for everything else. Any idea of what's happening? What can I do to find more clues? Thanks Marco > I've seen one odd (to me) problem like this that I was able to reproduce > consistently, thanks to the help of a user. If you are serving PHP, and > PHP is gzip'ing the output then clients behind a Squid proxy (on their > end) only get blank pages. > > Squid records something like "TCP_MISS/200 416 GET