Re: sendfile changes

2007-05-13 Thread Poul-Henning Kamp
of operating system (-versions ?) What does not doing it's job mean here? Sending corrupt or incomplete data? One, the other or even Both, depending on your kernel. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer

Re: sendfile changes

2007-05-13 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], =?ISO-8859-1?Q?Andreas_R =F8sdal?= writes: On Sun, 13 May 2007, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], =?ISO-8859-1?Q?Andreas_R =F8sdal?= writes: Hello, I have a question about a recent change done in SVN trunk: http://varnish.projects.linpro.no

Re: question marks in the url

2007-06-13 Thread Poul-Henning Kamp
, it appears. Varnish doesn't care about '?', but if you have cookies it will not cache. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained

Re: Error

2007-09-26 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], sure ndar p writes: Hi, When i compile the code,i got this error Expected positive indentation. what is the actual error it is? file and line information, please ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since

Re: Varnish Style Guide

2007-10-22 Thread Poul-Henning Kamp
-engineer (I find the capitalization strategy particularly confusing). The starting point is FreeBSD's style(9) manual page, and yes, the capitalization is not consistent. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer

Re: Support Cache-Control no-cache/private as per RFC2616 ?

2007-11-20 Thread Poul-Henning Kamp
. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. ___ varnish-dev

Re: Support Cache-Control no-cache/private as per RFC2616 ?

2007-11-20 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Mark Nottingha m writes: On 2007/11/21, at 4:54 AM, Poul-Henning Kamp wrote: The only truly precise way to characterize varnish, IMO, is A webserver that uses HTTP to get at its content. This is a good characterisation. It would probably be more correct to say

Re: development efforts on the Solaris side.

2008-01-08 Thread Poul-Henning Kamp
and built a storage_umem allocator facility that rides on Solaris' excellent libumem (highly scalable allocator) which we also ported to run on Linux and FreeBSD (and Mac OS X): https://labs.omniti.com/trac/portableumem Next steps? Can you mail me a link to the patch ? -- Poul-Henning Kamp

Re: Caching issue

2008-03-11 Thread Poul-Henning Kamp
Is this FAQ fodder ? In message [EMAIL PROTECTED], =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= writes: Poul-Henning Kamp [EMAIL PROTECTED] writes: You could try the following in vcl_recv: if (req.http.accept-encoding) { set req.http.accept-encoding =3D regsub

Re: varnish consuming too much memory?

2008-03-12 Thread Poul-Henning Kamp
i'm wondering how varnish determines how much memory it should consume... It uses all memory it can for caching. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute

Re: Move re test method into libvcl

2008-04-12 Thread Poul-Henning Kamp
that compiled code only calls VRT_* functions, you need to keep a VRT_re_test() wrapper around for that reason. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can

Re: Upload Buffering and x-sendfile

2008-04-20 Thread Poul-Henning Kamp
. Downloading: yes, we buffer. Uploading: no, we don't. Does varnish support x-sendfile type responses? Not at present, but it sounds like it could be useful, I'll add it to the post-2.0 ideas list. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since

Re: mmap'd file vs. swap

2008-05-05 Thread Poul-Henning Kamp
; on a system where the hot cache entries can be stored on disk, it would seem that the swap-based method would be superior. Well, it's slightly more complex than that, we mmap with the MAP_NOSYNC flag so it should be about a wash. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED

Re: Mapping VCL variables to internal variables

2008-05-22 Thread Poul-Henning Kamp
~ deflate) { set req.hash +=3D deflate; } } where do I find that in Varnish itself? See cache_center.c::cnt_lookup() [search for VCL_hash_method(sp);], and cache_hash.c::HSH_Copy(), HSH_Compare() and HSH_Lookup(). -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED

Re: about big flv files

2008-06-16 Thread Poul-Henning Kamp
? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. ___ varnish-dev mailing

Re: HTCP Purger

2008-06-23 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Artur Bergman writes: On Jun 23, 2008, at 1:26 AM, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Artur Bergman writes: I have written an multicast HTCP purger, essentially a perl script that listens to HTCP purges and then purges from the local

Re: varnish version question

2008-07-17 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Olivier Beau writes: - Which version of varnish is good for production ? Hi Olivier, We are getting very close to a 2.0 release, so right now the best code we have is the trunk version from subversion. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20

Re: Monitoring varnish

2008-07-21 Thread Poul-Henning Kamp
-dev -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. ___ varnish-dev

Re: n_smf_large so large -- varnish-dev Digest, Vol 28, Issue 1

2008-07-21 Thread Poul-Henning Kamp
, and basically we decided that perfect statistics were not as important as fast speed. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained

Re: Fresh patch for Solaris

2008-08-11 Thread Poul-Henning Kamp
? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. ___ varnish-dev mailing

Re: Fresh patch for Solaris

2008-08-11 Thread Poul-Henning Kamp
my questions about .so and sendfile ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence

Re: Fresh patch for Solaris

2008-08-11 Thread Poul-Henning Kamp
. It knows better [...] Ok, fair enough. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence

Re: waitpid EINTR issue in varnishd ( testcases)

2008-08-15 Thread Poul-Henning Kamp
I have committed the EINTR patch and, I hope, fixed the two testcases, please check this and send me your latest solaris patch. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL PROTECTED] | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never

Re: Bug in 1.1.2: Multiple headers stripped (oops)

2008-08-19 Thread Poul-Henning Kamp
present in the backend connection, and added one of it's own using the IP address of the backend server as the content of that header. 6) The incorrect document was fetched for the backend because the Host header was not correct. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20

Re: please revise document or code

2008-10-10 Thread Poul-Henning Kamp
done. http://varnish.projects.linpro.no/wiki/VCLExampleLongerCaching section *How it should work* set obj.ttl = 1w; maybe changed to set obj.ttl = 7d; or in function static double TimeUnit(struct tokenlist *tl) add w Id -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 [EMAIL

Re: Bug : Assert error in exp_timer() | Child not responding to ping, killing it.

2008-12-12 Thread Poul-Henning Kamp
; set obj.ttl = 2h; ... set obj.ttl = 1d; ... set obj.ttl = 1w; set obj.ttl = 4w; -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute

Re: Bug: Child not responding to ping, killing it.

2008-12-18 Thread Poul-Henning Kamp
the backend times them out. How you TCP connections get out of sync between varnish host and backend host I have no idea... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute

Re: What's the best way to give feedback for future Varnish features?

2009-03-11 Thread Poul-Henning Kamp
and saw a request (please tell us which!) after more ESI features, but I'm not sure how to voice my preference. Get a wiki login[1], edit the page. [1] They are free and we happily give them away, but you have to ask so we kan keep spammers away. -- Poul-Henning Kamp | UNIX since Zilog

Re: accept_fd_holdoff second/millisecond confusion

2009-03-20 Thread Poul-Henning Kamp
://projects.linpro.no/mailman/listinfo/varnish-dev -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@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

Re: Huge number for N struct vbe_conn

2009-05-20 Thread Poul-Henning Kamp
it: 18446744073709551615 - 2^64 = -1 -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@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

Re: VCL compiler coverage test FAILED

2009-06-09 Thread Poul-Henning Kamp
: vcc_acl.c FAIL: ./tests/v00017.vtc Can you try to run that test by hand with a -v flag ? cd .../bin/varnishtest ./varnishtest -v tests/v00017.vtc -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since

Re: Handling Dynamic Backend Redirects

2009-06-11 Thread Poul-Henning Kamp
In message 4a305b14.7080...@caringo.com, Mike Melson writes: Is there anyway to catch follow a 301 redirect from a backend server to a host that has NOT been defined as a backend in varnish? No. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since

Re: Backend polling not working

2009-10-21 Thread Poul-Henning Kamp
convenient for the code. I'll change it. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@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

Re: bug in esi:include handling (with patch)

2009-11-18 Thread Poul-Henning Kamp
/varnistest/tests/e6.vtc for an example. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@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

Re: HSH_Lookup entered multiply - why could that happen?

2009-12-09 Thread Poul-Henning Kamp
time to fetch, has no cacheability, but does not get marked pass in vcl_fetch ? Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately

Re: scheduling off the waiting list

2009-12-28 Thread Poul-Henning Kamp
have no better ideas. Grace mode helps a lot, if you can use it. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained

Re: r4480 - trunk/varnish-cache/bin/varnishncsa

2010-02-01 Thread Poul-Henning Kamp
we would make the non-support for -b explicit, until the code could be written. There are no objections to supporting it, it's just code to be written by somebody... (nudge, nudge, wink, wink...) Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP

Re: Literal ip4/6 addresses in VCL

2010-03-07 Thread Poul-Henning Kamp
= IP(req.http.x-forwarded-for); -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@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

Re: Literal ip4/6 addresses in VCL

2010-03-07 Thread Poul-Henning Kamp
is needed. Do you have an opinion regarding the suggestion for the VCL compile time case? There should not be two different syntaxes, the above should be used in both cases. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer