- 09 Mar, 2007 1 commit
-
-
Poul-Henning Kamp authored
compiler. The syntax is: include "filename" ; Unlike the C preprocessors #include directive, a VCL include can appear anywhere in the sourcefile: if {req.Cookie == include "cookie.vcl" ; || !req.Host } { } and have cookie.vcl contain just: "8435398475983275293759843" Technically this results in a change to how we account for source code references in the counter/profile table as well, and as a result the entire source code of the VCL program is now compiled into the shared library for easy reference. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1281 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 08 Mar, 2007 2 commits
-
-
Poul-Henning Kamp authored
specifying a whitespace separated list of addresses to -a (or param.set listen_address). I'm not sure about the error handling, for instance, what is the desirable behaviour if one of multiple sockets fail to open ? Suggested by: <darryl.dixon@winterhouseconsulting.com> git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1280 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1279 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 07 Mar, 2007 1 commit
-
-
Poul-Henning Kamp authored
to have their storage properly reclaimed, including the actual content of a obj.pass=1 cache entry, once we have sent the content to the original requestor. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1278 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 06 Mar, 2007 1 commit
-
-
Poul-Henning Kamp authored
Having thought long and hard about this, commit what I think is the new and simpler flow for version2. Pass is now handled like a miss where the object will not be cached. The main result of this is that we drag the entire object, header and body, from the backend before transmitting it to the client, thus isolating the backend from slow clients. From a software engineering point of view it is a big improvement, because it eliminates the need for all of cache_pass.c and we therefore end up with less HTTP protocol implementations. A side effect of this is that ticket #56 should be fixed now. If the object is pass'ed before vcl_fetch{} that is, in vcl_recv{}, vcl_hit{} or vcl_miss{}, no "pass this" object is inserted in the cache. The confusion between "pass", "insert" and "insert_pass" has been cleaned up, by the removal of the latter. Pipe and Pass calls vcl_pipe{} and vcl_pass{} respectively, before contacting the backend. I havn't quite decided if they should operate on the request header from the client or the one to the backend, or both. One possible use is to inject a "Connection: close" header to limit pipe to one transaction. A new vcl_hash{} has been added, it will allow customization of which fields we hash on, instead of the default "url + Host:" but this is not yet implemented. vcl_fetch{} is now called after both the headers and body have been picked up from the backend. This will allow us to do more comprehensive handling of backend errors later on. A disadvantage to this is that if the object ends up as a "pass this" object in the cache, we could possibly have released any queued requests already after the headers were received. If this is transpires as a real-world problem, we can add a vcl_fetchhdr{} which can do an early release (ie: "pass"). git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1277 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 27 Feb, 2007 2 commits
-
-
Lars Bahner authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1275 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Lars Bahner authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1273 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 23 Feb, 2007 2 commits
-
-
Dag Erling Smørgrav authored
a lot easier for our packagers. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1271 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1270 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 20 Feb, 2007 2 commits
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1266 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1243 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 30 Jan, 2007 1 commit
-
-
Poul-Henning Kamp authored
Update backend stats fields git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1240 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 29 Jan, 2007 1 commit
-
-
Poul-Henning Kamp authored
There is no sane way to get sscanf to tell you how many characters were consumed, if you want to allow a variable number of arguments. The special format %n is patently useless for this, because you have to insert it at every conceiveable point in the string and that presumes full explicit whitespace markup. Parse -w argument "by hand", to catch illegal input like "1,INF,15" Tripped over by: Stein Ove Rosseland <steinove@vg.no> Fixes: ticket #82 git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1239 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 22 Jan, 2007 6 commits
-
-
Poul-Henning Kamp authored
Rename the fields to make more sense git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1238 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
so we have to add our own stuff for that. Without some kind of TTL, we would hit the DNS server once per failed attempt to connect to the backend. If the backend were down, we could hit it a LOT. In the VCL code: backend foobar { [...] set backend.dnsttl = 20s; } will assign a TTL for DNS lookups of this backends hostname+port combination, we will not hit the DNS server more often that this. The default is set at 30 seconds, short enough to make things are workable in a load-balancing-via-DNS setups, yet long enough to not pound the DNS server flat in case of backend failures. NOTE that as long as we succeed in connecting to the backend we do not perform new DNS lookups. That will have to be revisited along with possible load-balancing schemes for the backend(s). git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1237 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1236 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1235 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1234 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1233 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 02 Jan, 2007 1 commit
-
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1231 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 18 Dec, 2006 1 commit
-
-
Knut Aksel Roeysland authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1230 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 05 Dec, 2006 4 commits
-
-
Dag Erling Smørgrav authored
Pointy hat to: {ade,portsmgr}@freebsd.org git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1229 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1228 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
FreeBSD also. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1227 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
Starting with 3.1, NetBSD uses statvfs and not statfs. Submitted by: Juan RP <juan@xtrarom.org> git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1226 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 08 Nov, 2006 3 commits
-
-
Ingvar Hagelund authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1222 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
the user asks; bail if max < min; fix usage string. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1221 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
Make the pipe-juggling code slightly more readable. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1220 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 03 Nov, 2006 1 commit
-
-
Lars Bahner authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1216 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 02 Nov, 2006 1 commit
-
-
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.ChangeDag Erling Smørgrav authored
remove the so-called advertising clause from these files' license, making it compatible with the Debian Free Software Guidelines. As these files were obtained from FreeBSD, this change was discussed with and approved by the FreeBSD core team. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1208 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 23 Oct, 2006 2 commits
-
-
Lars Bahner authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1207 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Lars Bahner authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1206 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 19 Oct, 2006 7 commits
-
-
Lars Bahner authored
Added wording regarding the origination of the source of varnish with relation to debian. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1205 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Lars Bahner authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1204 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Ingvar Hagelund authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1203 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Ingvar Hagelund authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1202 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1198 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1197 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1196 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 17 Oct, 2006 1 commit
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1155 d4fa192b-c00b-0410-8231-f00ffab90ce4
-