- 09 May, 2007 11 commits
-
-
Poul-Henning Kamp authored
The vcl_hash() is now used to control which fields go into the hash algorithm, and the default is stil, as previously, the URL + Host: header. But now it is controlled by the vcl code, with the default vcl_hash() being: sub vcl_hash { req.hash += req.url; req.hash += req.http.host; hash; } Once I get a bit further, this will be changed to sub vcl_hash { req.hash += req.url; if (req.http.host) { req.hash += req.http.host; } else { req.hash += server.ip; } hash; } So that we correctly hash HTTP requests without Host: headers, that go to a machine with multiple IP numbers. If you want to add fields to the hash, just write a vcl_hash that does not end in "hash;": sub vcl_hash { req.hash += req.http.cookie; } If you want to override the default vcl_hash, just say so: sub vcl_hash { req.hash += req.url; hash; // do not continue into default vcl_hash } git-svn-id: http://www.varnish-cache.org/svn/trunk@1398 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1397 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1396 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
and create a function to figure this out, if present. Add the req.hash variable and the += operator for it, so we can put the actual hash contents under vcl control. The runtime half of this stuff is not done yet. git-svn-id: http://www.varnish-cache.org/svn/trunk@1395 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
process to catch any implementation-discrepancies between symbols used by the compiler and those implemented in the runtime. The situation will happen from time to time and there is no need to issue a panic when we can test sensibly for it. git-svn-id: http://www.varnish-cache.org/svn/trunk@1394 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1393 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1392 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1391 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
The definition of "server.ip" is what getsockname(2) returns for our end of the connection. Don't report ACL matches for acls created as a result of '==' or '!=' usage on IP number variables. Move storage for sess->sockaddr away from sessmem and expose more code to <sys/socket.h>. This is a network application after all. XXX: somebody with IPv6 connectivity needs to look at ACLs in IPv6 context. git-svn-id: http://www.varnish-cache.org/svn/trunk@1390 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
It works by building a one-entry ACL of the subsequent tokens and matching this ACL just like '~' would have done. This means that it is possible to use the '!', '(...)', '/width' constructs and domain-names in these comparisons. Examples: if (client.ip == ( "www.freebsd.org" )) { if (client.ip == (! "localhost" )) { if (client.ip == (! "10.0.0.0"/8 )) { or even if (client.ip != "somehost" / 28) { git-svn-id: http://www.varnish-cache.org/svn/trunk@1389 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
(It is my intent that the compiled-to C-source should have sensible readability) git-svn-id: http://www.varnish-cache.org/svn/trunk@1388 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 06 May, 2007 1 commit
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1387 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 05 May, 2007 4 commits
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1386 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1385 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1384 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1383 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 04 May, 2007 2 commits
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1382 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1381 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 03 May, 2007 4 commits
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1380 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1379 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1378 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1377 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 02 May, 2007 3 commits
-
-
Dag Erling Smørgrav authored
caused the Varnish child to die immediately after sending its 503 response if the backend didn't respond. Reviewed by: phk git-svn-id: http://www.varnish-cache.org/svn/trunk@1376 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1375 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
while the F_INVCL flag is set, we need to insert a newline before the entry for the new VCL_call. git-svn-id: http://www.varnish-cache.org/svn/trunk@1374 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 01 May, 2007 4 commits
-
-
Dag Erling Smørgrav authored
which the parent pings the child. Also document pipe_timeout, which was left out of the man page by accident. git-svn-id: http://www.varnish-cache.org/svn/trunk@1373 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
- change the type of vsl_handler()'s tag argument from unsigned int to enum shmlogtag to allow gcc to check switch statements and gdb to show its value by name rather than by number. - fix the "missing newline after VCL_call" bug in varnishlog (#95) git-svn-id: http://www.varnish-cache.org/svn/trunk@1372 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1371 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1370 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 26 Apr, 2007 2 commits
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1369 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
Submitted by: Pierre Queinnec <pierre.queinnec@zenika.com> git-svn-id: http://www.varnish-cache.org/svn/trunk@1368 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 24 Apr, 2007 4 commits
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1367 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
This makes --enable-werror work again. git-svn-id: http://www.varnish-cache.org/svn/trunk@1366 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
This makes --enable-werror work again. git-svn-id: http://www.varnish-cache.org/svn/trunk@1365 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
(except for the C math library, which the C standard guarantees is always available as -lm) and more importantly, use them only where needed. This should fix the compilation issues on SuSE. git-svn-id: http://www.varnish-cache.org/svn/trunk@1364 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 22 Apr, 2007 1 commit
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1363 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 21 Apr, 2007 3 commits
-
-
Dag Erling Smørgrav authored
- Treat all request fields in a similar manner. - Mostly eliminate fixed-size buffers. - Don't print or format anything until we see ReqEnd. - If we saw a Host: header, use it to generate an absolute URI, resulting in far more useful output when processing logs from a server which handles multiple virtual hosts. git-svn-id: http://www.varnish-cache.org/svn/trunk@1362 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1361 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk@1360 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 19 Apr, 2007 1 commit
-
-
Poul-Henning Kamp authored
need to read more from the fd. The semantics we _really_ want for that read operation is "wait until at least one char is available, then return as many as N to us". This can be done with a combination of system calls, but it is likely just as cheap to just read one char at a time, so we do that. git-svn-id: http://www.varnish-cache.org/svn/trunk@1359 d4fa192b-c00b-0410-8231-f00ffab90ce4
-