]> err.no Git - varnish/log
varnish
17 years agoMove parts of tcp.c out into libvarnish. Rename the API from "TCP" to "VSS"
des [Wed, 6 Jun 2007 11:24:06 +0000 (11:24 +0000)]
Move parts of tcp.c out into libvarnish.  Rename the API from "TCP" to "VSS"
(Varnish Stream Sockets) as I intend to eventually add support for AF_UNIX
sockets.

This also moves the accept filter code out from VSS_listen() (previously
TCP_open()) and into a separate function in tcp.c

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1500 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years ago* Move PURGE to a place where it does some good
ssm [Tue, 5 Jun 2007 15:46:07 +0000 (15:46 +0000)]
* Move PURGE to a place where it does some good

* Make http auth work

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1499 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoWrap the management of the session workspace in functions, to prevent
phk [Mon, 4 Jun 2007 19:10:16 +0000 (19:10 +0000)]
Wrap the management of the session workspace in functions, to prevent
pointer gymnastics getting out of hand.

In addition to the obvious alloc/return primitives there are also
reserve/release primitives for when we don't know the length yet.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1498 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoFold long lines.
phk [Mon, 4 Jun 2007 19:08:30 +0000 (19:08 +0000)]
Fold long lines.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1497 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoRegenerate.
des [Mon, 4 Jun 2007 15:56:56 +0000 (15:56 +0000)]
Regenerate.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1496 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd about as much space on each side as there was in the old logo.
des [Mon, 4 Jun 2007 15:54:34 +0000 (15:54 +0000)]
Add about as much space on each side as there was in the old logo.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1495 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoPre-rendered versions of the full logo in various sizes.
des [Mon, 4 Jun 2007 15:47:12 +0000 (15:47 +0000)]
Pre-rendered versions of the full logo in various sizes.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1494 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoFull logo with both red and green background
des [Mon, 4 Jun 2007 15:46:56 +0000 (15:46 +0000)]
Full logo with both red and green background

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1493 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoRename to include "icon" in file name.
des [Mon, 4 Jun 2007 15:42:37 +0000 (15:42 +0000)]
Rename to include "icon" in file name.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1492 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoCorrect the red / green color to 60% instead of 75%.
des [Mon, 4 Jun 2007 15:27:08 +0000 (15:27 +0000)]
Correct the red / green color to 60% instead of 75%.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1491 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoGC unused files.
des [Mon, 4 Jun 2007 15:04:14 +0000 (15:04 +0000)]
GC unused files.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1490 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd configure options for extra-strict warnings + stack protection (both
des [Mon, 4 Jun 2007 14:42:55 +0000 (14:42 +0000)]
Add configure options for extra-strict warnings + stack protection (both
require gcc 4), tune autogen.des accordingly.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1489 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoPrerendered icons in red or green in various sizes. Stored in GIF format
des [Mon, 4 Jun 2007 08:46:39 +0000 (08:46 +0000)]
Prerendered icons in red or green in various sizes.  Stored in GIF format
to preserve transparency - MSIE can't handle PNG transparency.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1488 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoIcon version of the logo, with either red or green background.
des [Mon, 4 Jun 2007 08:45:22 +0000 (08:45 +0000)]
Icon version of the logo, with either red or green background.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1487 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoOriginal logo sheet from VG
des [Mon, 4 Jun 2007 08:44:44 +0000 (08:44 +0000)]
Original logo sheet from VG

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1486 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoMake these scripts executable.
des [Fri, 1 Jun 2007 22:43:03 +0000 (22:43 +0000)]
Make these scripts executable.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1485 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoKeep a master copy of the parameter block, to which all changes are applied,
des [Fri, 1 Jun 2007 22:18:55 +0000 (22:18 +0000)]
Keep a master copy of the parameter block, to which all changes are applied,
and which is copied to the shared parameter block every time a parameter
changes as well as immediately before forking off a child.  This prevents a
hypothetical compromised child from changing the parent's idea of run-time
parameters (which would, for example, allow it to trick the the parent into
starting a new, hypothetically exploitable child with the attacker's choice
of uid / gid).

While I'm here, correct the use of the "volatile" qualifier - it is the
parmeter block itself which can change unpredictably, not the pointer.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1484 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd a watch file to help people who build packages themselves look for a new release...
ssm [Fri, 1 Jun 2007 07:34:09 +0000 (07:34 +0000)]
Add a watch file to help people who build packages themselves look for a new release of varnish

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1483 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd two run-time parameters, "user" and "group", which specify an unprivileged
des [Thu, 31 May 2007 12:57:30 +0000 (12:57 +0000)]
Add two run-time parameters, "user" and "group", which specify an unprivileged
user and group to which the child process will switch immediately after fork()
returns, before it starts accepting connections.  The default values are
"nobody" and "nogroup" (they should probably be tweakable at compile time...)

Note that this does not provide full privilege separation, as there are still
channels between the parent and child processes which need to be monitored,
but it is an improvement on the previous situation.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1482 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoCorrect a systematic typo in the license.
des [Thu, 31 May 2007 09:18:56 +0000 (09:18 +0000)]
Correct a systematic typo in the license.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1481 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoWhitespace cleanup.
des [Wed, 30 May 2007 14:54:28 +0000 (14:54 +0000)]
Whitespace cleanup.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1480 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agovarnishncsa is now able to produce backend logs. A couple of problems still remain...
cecilihf [Wed, 30 May 2007 09:53:49 +0000 (09:53 +0000)]
varnishncsa is now able to produce backend logs. A couple of problems still remain: missing hostname and timestamp for backend communication. This could be solved with some extra tags serving the same purpose as ReqStart and ReqEnd does for client communication, providing this information.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1479 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agomore intelligent sed magic in the redhat specfile
ingvar [Tue, 29 May 2007 11:27:56 +0000 (11:27 +0000)]
more intelligent sed magic in the redhat specfile

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1478 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoBe more explicit about which files / directories to include in a release.
des [Tue, 29 May 2007 10:54:42 +0000 (10:54 +0000)]
Be more explicit about which files / directories to include in a release.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1477 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years ago* Mon May 28 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.4-3
ingvar [Mon, 28 May 2007 21:04:17 +0000 (21:04 +0000)]
* Mon May 28 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.4-3
- Fixed initrc-script bug only visible on el4 (fixes #107)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1476 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoThe call to HSH_Freestore() is redundant; in pass mode, there are no other
des [Fri, 25 May 2007 10:06:50 +0000 (10:06 +0000)]
The call to HSH_Freestore() is redundant; in pass mode, there are no other
references to the object, so HSH_Deref() will free its storage.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1475 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd an API for synthetic objects, and use it to implement negative
des [Fri, 25 May 2007 10:00:38 +0000 (10:00 +0000)]
Add an API for synthetic objects, and use it to implement negative
caching of backend issues.

Brief summary:

 - moved http_msg array from cache_response.c to cache_http.c,
   introduced http_StatusMessage() lookup function

 - introduced http_Put{Protocol,Status,Response} to complement
   http_PrintfHeader().

 - introduced SYN_ErrorPage() in a new file, cache_synthetic.c.
   SYN_ErrorPage() populates the session's current object with the
   specified error code and a corresponding HTML error page; it is the
   caller's responsibility to ensure that the session has a suitable
   object (i.e. one that doesn't already have headers or a body)

 - rewrote RES_Error() to simply call SYN_ErrorPage() (with ttl = 0) and
   RES_WriteObj().

 - rewrote cnt_fetch() to use SYN_ErrorPage() to create a 503 page with
   a TTL of 30 seconds when Fetch() fails.

 - removed the call to RES_Error() in cache_backend.c; the error
   trickles back up to cnt_fetch() anyway.

Comments from review:

 - Memory allocation and pointer gymnastics for the header and body
   are duplicated all over the place (in new and pre-existing code)
   and should be centralized and hidden behind a suitable API.

 - The http_*() API needs refactoring, we shouldn't need four
   different functions to manipulate four different entries in the
   same array.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1474 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoThe correct mailing list for general technical questions is varnish-misc.
des [Fri, 25 May 2007 09:19:47 +0000 (09:19 +0000)]
The correct mailing list for general technical questions is varnish-misc.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1473 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoNit: mention autogen.sh
des [Fri, 25 May 2007 09:17:36 +0000 (09:17 +0000)]
Nit: mention autogen.sh

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1472 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agos/illegal/invalid/g
des [Fri, 25 May 2007 09:10:01 +0000 (09:10 +0000)]
s/illegal/invalid/g

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1471 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoNit: mark exit point.
des [Wed, 23 May 2007 12:13:53 +0000 (12:13 +0000)]
Nit: mark exit point.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1470 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAvoid shadowing truncate(2) with a local variable.
des [Wed, 23 May 2007 12:10:20 +0000 (12:10 +0000)]
Avoid shadowing truncate(2) with a local variable.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1469 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoFix an exceptionally stupid logic error in the previous commit.
des [Wed, 23 May 2007 10:07:49 +0000 (10:07 +0000)]
Fix an exceptionally stupid logic error in the previous commit.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1468 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoFrom FreeBSD: if (flags & O_TRUNC), don't truncate the file until we've
des [Wed, 23 May 2007 08:14:11 +0000 (08:14 +0000)]
From FreeBSD: if (flags & O_TRUNC), don't truncate the file until we've
successfully locked it.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1467 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoWe want to restart varnishd on upgrade
ssm [Tue, 22 May 2007 16:05:55 +0000 (16:05 +0000)]
We want to restart varnishd on upgrade

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1466 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoFix compilation on OpenBSD 4.1.
des [Tue, 22 May 2007 16:02:15 +0000 (16:02 +0000)]
Fix compilation on OpenBSD 4.1.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1465 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd exit status 1 if we fail to start, or reload.
ssm [Tue, 22 May 2007 15:35:54 +0000 (15:35 +0000)]
Add exit status 1 if we fail to start, or reload.
Remove "oknodo" to actually provide an error message if we cannot stop the service.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1464 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd log rotation for /var/log/varnish/varnish.log
ssm [Tue, 22 May 2007 15:33:41 +0000 (15:33 +0000)]
Add log rotation for /var/log/varnish/varnish.log

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1463 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoInitialize storage modules magic element.
phk [Tue, 22 May 2007 10:20:57 +0000 (10:20 +0000)]
Initialize storage modules magic element.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1462 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoSpell my name right, and use a more convenient mail address
ssm [Mon, 21 May 2007 04:57:09 +0000 (04:57 +0000)]
Spell my name right, and use a more convenient mail address

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1461 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoSilence a compiler warning that occurs with gcc 4.2.
des [Sun, 20 May 2007 22:22:24 +0000 (22:22 +0000)]
Silence a compiler warning that occurs with gcc 4.2.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1460 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoSet mime-type.
des [Sun, 20 May 2007 18:12:33 +0000 (18:12 +0000)]
Set mime-type.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1459 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoCopy NFILES knob from redhat/varnish.initrc.
des [Sun, 20 May 2007 16:19:03 +0000 (16:19 +0000)]
Copy NFILES knob from redhat/varnish.initrc.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1456 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd init script for varnishlog
ssm [Fri, 18 May 2007 14:14:53 +0000 (14:14 +0000)]
Add init script for varnishlog

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1455 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd entry for r1450.
des [Fri, 18 May 2007 09:14:11 +0000 (09:14 +0000)]
Add entry for r1450.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1451 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoreopen needs to be volatile, or the compiler might optimize it away.
des [Fri, 18 May 2007 08:15:23 +0000 (08:15 +0000)]
reopen needs to be volatile, or the compiler might optimize it away.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1450 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoOur default.vcl has a minor change: It uses localhost:80 (thus not
ingvar [Thu, 17 May 2007 21:49:45 +0000 (21:49 +0000)]
Our default.vcl has a minor change: It uses localhost:80 (thus not
default anymore, but whatever, it will work with apache httpd out of
the box, and that's better for easy testing) as the backend. sysconfig
file changed to reflect this.

Minor cosmetic changes in the specfile

Ingvar

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1449 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years ago:- is simpler than reverse negation
ingvar [Thu, 17 May 2007 21:11:37 +0000 (21:11 +0000)]
:- is simpler than reverse negation

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1448 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agojust some output cleanup
ingvar [Thu, 17 May 2007 18:17:12 +0000 (18:17 +0000)]
just some output cleanup

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1447 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoIgnore generated files.
des [Thu, 17 May 2007 16:50:49 +0000 (16:50 +0000)]
Ignore generated files.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1445 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoMerged revisions 1437-1442 via svnmerge from
des [Thu, 17 May 2007 12:21:50 +0000 (12:21 +0000)]
Merged revisions 1437-1442 via svnmerge from
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache

........
  r1437 | ssm | 2007-05-16 17:20:47 +0200 (Wed, 16 May 2007) | 1 line

  debian changelog, so far
........
  r1438 | des | 2007-05-16 22:02:08 +0200 (Wed, 16 May 2007) | 7 lines

  Tweak some of the defaults:

   - bind to all interfaces
   - use a 1 gibibyte
   - remove hash setting, it's not safe
   - tweak some variable names and comments
........
  r1439 | des | 2007-05-16 22:03:32 +0200 (Wed, 16 May 2007) | 2 lines

  Improve the descriptions of some of the options and parameters.
........
  r1440 | ingvar | 2007-05-16 23:08:43 +0200 (Wed, 16 May 2007) | 6 lines

  * Wed May 16 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-20070516
  - Wrapping up for 1.0.4
  - Changes in sysconfig and init scripts. Syncing with files in
    trunk/debian
........
  r1441 | des | 2007-05-17 13:48:35 +0200 (Thu, 17 May 2007) | 3 lines

  Add an XML+XSLT-based change log.  Unlike the change logs for previous
  releases, this one was written by hand, which makes it user-readable.
........
  r1442 | des | 2007-05-17 13:51:46 +0200 (Thu, 17 May 2007) | 2 lines

  We won't use this any more.
........

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1443 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoWe won't use this any more.
des [Thu, 17 May 2007 11:51:46 +0000 (11:51 +0000)]
We won't use this any more.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1442 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd an XML+XSLT-based change log. Unlike the change logs for previous
des [Thu, 17 May 2007 11:48:35 +0000 (11:48 +0000)]
Add an XML+XSLT-based change log.  Unlike the change logs for previous
releases, this one was written by hand, which makes it user-readable.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1441 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years ago* Wed May 16 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-20070516
ingvar [Wed, 16 May 2007 21:08:43 +0000 (21:08 +0000)]
* Wed May 16 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-20070516
- Wrapping up for 1.0.4
- Changes in sysconfig and init scripts. Syncing with files in
  trunk/debian

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1440 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoImprove the descriptions of some of the options and parameters.
des [Wed, 16 May 2007 20:03:32 +0000 (20:03 +0000)]
Improve the descriptions of some of the options and parameters.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1439 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoTweak some of the defaults:
des [Wed, 16 May 2007 20:02:08 +0000 (20:02 +0000)]
Tweak some of the defaults:

 - bind to all interfaces
 - use a 1 gibibyte
 - remove hash setting, it's not safe
 - tweak some variable names and comments

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1438 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agodebian changelog, so far
ssm [Wed, 16 May 2007 15:20:47 +0000 (15:20 +0000)]
debian changelog, so far

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1437 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoInclude zope-plone.vcl in the tarball.
des [Wed, 16 May 2007 14:29:46 +0000 (14:29 +0000)]
Include zope-plone.vcl in the tarball.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1434 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoExplain in more detail how the storage file size is specified.
des [Wed, 16 May 2007 12:45:53 +0000 (12:45 +0000)]
Explain in more detail how the storage file size is specified.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1432 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoInit-script:
ssm [Wed, 16 May 2007 11:38:08 +0000 (11:38 +0000)]
Init-script:

  * Move user-adjustable parts from init script to defaults file, expect
    $DAEMON_OPTS instead of a whole forest of variables.

  * We have a pid file argument, wheee. :D

Defaults file:

 * Created alternative default templates, selected a one-backend default
   without VCL file.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1431 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoUse etc/default.vcl instead of debian/vcl.conf
ssm [Wed, 16 May 2007 10:59:13 +0000 (10:59 +0000)]
Use etc/default.vcl instead of debian/vcl.conf

Register etc/zope-plone.vcl as an example configuration file

Typo patrol

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1430 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoShip with etc/default.vcl instead, no need for a separate configuration file
ssm [Wed, 16 May 2007 10:54:38 +0000 (10:54 +0000)]
Ship with etc/default.vcl instead, no need for a separate configuration file

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1429 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agofix upgrade issue in postrm script, and rename it to <package>.postrm to match other...
ssm [Wed, 16 May 2007 10:53:30 +0000 (10:53 +0000)]
fix upgrade issue in postrm script, and rename it to <package>.postrm to match other debian control files

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1428 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdded example vcl to use in front of zope+plone (this could perhaps go in a contrib...
ssm [Wed, 16 May 2007 10:52:15 +0000 (10:52 +0000)]
Added example vcl to use in front of zope+plone (this could perhaps go in a contrib/ directory instead)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1427 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoDistribute default.vcl.
des [Wed, 16 May 2007 09:35:18 +0000 (09:35 +0000)]
Distribute default.vcl.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1426 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoExpand tags
des [Wed, 16 May 2007 09:34:26 +0000 (09:34 +0000)]
Expand tags

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1425 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoRename vcl.conf to default.vcl, update and comment the sample code.
des [Tue, 15 May 2007 19:38:56 +0000 (19:38 +0000)]
Rename vcl.conf to default.vcl, update and comment the sample code.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1424 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAttempt to fix the bind-to-any problem:
des [Tue, 15 May 2007 11:35:44 +0000 (11:35 +0000)]
Attempt to fix the bind-to-any problem:

 - Introduce a "struct tcp_addr" which is a lightweight form of struct
   addrinfo for our own internal use.

 - Add a TCP_resolve() function which takes the output from TCP_parse()
   and fills in a list of pointers to struct tcp_addr, one for each
   address returned by getaddrinfo().

 - Modify all TCP_open() callers to use TCP_resolve() and call TCP_open()
   once for every address returned.

 - Add some explanatory comments to tcp.c.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1423 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoRevert accidental commit of unfinished negative-caching patch.
des [Tue, 15 May 2007 11:15:49 +0000 (11:15 +0000)]
Revert accidental commit of unfinished negative-caching patch.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1421 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAN() and XXXAN() are also useful for non-pointer results.
des [Tue, 15 May 2007 11:01:34 +0000 (11:01 +0000)]
AN() and XXXAN() are also useful for non-pointer results.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1420 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoMerged revisions 1394,1400-1418 via svnmerge from
des [Mon, 14 May 2007 09:42:16 +0000 (09:42 +0000)]
Merged revisions 1394,1400-1418 via svnmerge from
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache

........
  r1394 | phk | 2007-05-09 12:55:33 +0200 (Wed, 09 May 2007) | 8 lines

  After compilation of a VCL program, do a test-load into the management
  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.
........
  r1403 | ingvar | 2007-05-11 09:51:11 +0200 (Fri, 11 May 2007) | 5 lines

  * Fri May 11 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-20070511
  - Threw latest changes into svn trunk
  - Removed the conversion of manpages into utf8. They are all utf8 in trunk
........
  r1404 | ingvar | 2007-05-11 10:13:03 +0200 (Fri, 11 May 2007) | 1 line
........
  r1406 | des | 2007-05-11 13:06:03 +0200 (Fri, 11 May 2007) | 2 lines

  Comment out comparisons which are always true (unsigned >= 0)
........
  r1407 | des | 2007-05-11 13:06:38 +0200 (Fri, 11 May 2007) | 2 lines

  Tweak DEVELOPER_CFLAGS.
........
  r1408 | des | 2007-05-11 13:14:32 +0200 (Fri, 11 May 2007) | 2 lines

  Pull flopen() and pidfile_*() (renamed to vpf_*()) from FreeBSD.
........
  r1409 | des | 2007-05-11 13:15:46 +0200 (Fri, 11 May 2007) | 2 lines

  Expand tags.
........
  r1410 | des | 2007-05-11 13:17:09 +0200 (Fri, 11 May 2007) | 2 lines

  No use expanding tags unless there *are* tags...
........
  r1411 | des | 2007-05-11 13:34:42 +0200 (Fri, 11 May 2007) | 2 lines

  Add -D (daemonize) and -P (pid file) options.
........
  r1412 | des | 2007-05-11 13:35:59 +0200 (Fri, 11 May 2007) | 2 lines

  Remove unused header.
........
  r1413 | des | 2007-05-11 14:01:47 +0200 (Fri, 11 May 2007) | 2 lines

  Avoid gcc4-specific compiler options.
........
  r1414 | des | 2007-05-11 14:05:02 +0200 (Fri, 11 May 2007) | 2 lines

  Forgotten commit: check for <vis.h> and daemon(3) availability.
........
  r1415 | des | 2007-05-11 14:17:26 +0200 (Fri, 11 May 2007) | 2 lines

  Add -P (pid file) option.
........
  r1416 | des | 2007-05-11 14:19:48 +0200 (Fri, 11 May 2007) | 2 lines

  Minor style issues.
........
  r1417 | phk | 2007-05-11 15:15:16 +0200 (Fri, 11 May 2007) | 7 lines

  Make the sendfile threshold inifinity for now, we have evidence of
  sendfile not doing it's job in a number of operating system (-versions ?)

  This change is unlikely to cause a performance hit anywhere, because
  writev() is pretty effective in the first place.
........
  r1418 | des | 2007-05-14 11:02:23 +0200 (Mon, 14 May 2007) | 2 lines

  Document the inadvisability of enabling sendfile.
........

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1419 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoDocument the inadvisability of enabling sendfile.
des [Mon, 14 May 2007 09:02:23 +0000 (09:02 +0000)]
Document the inadvisability of enabling sendfile.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1418 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoMake the sendfile threshold inifinity for now, we have evidence of
phk [Fri, 11 May 2007 13:15:16 +0000 (13:15 +0000)]
Make the sendfile threshold inifinity for now, we have evidence of
sendfile not doing it's job in a number of operating system (-versions ?)

This change is unlikely to cause a performance hit anywhere, because
writev() is pretty effective in the first place.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1417 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoMinor style issues.
des [Fri, 11 May 2007 12:19:48 +0000 (12:19 +0000)]
Minor style issues.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1416 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd -P (pid file) option.
des [Fri, 11 May 2007 12:17:26 +0000 (12:17 +0000)]
Add -P (pid file) option.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1415 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoForgotten commit: check for <vis.h> and daemon(3) availability.
des [Fri, 11 May 2007 12:05:02 +0000 (12:05 +0000)]
Forgotten commit: check for <vis.h> and daemon(3) availability.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1414 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAvoid gcc4-specific compiler options.
des [Fri, 11 May 2007 12:01:47 +0000 (12:01 +0000)]
Avoid gcc4-specific compiler options.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1413 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoRemove unused header.
des [Fri, 11 May 2007 11:35:59 +0000 (11:35 +0000)]
Remove unused header.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1412 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd -D (daemonize) and -P (pid file) options.
des [Fri, 11 May 2007 11:34:42 +0000 (11:34 +0000)]
Add -D (daemonize) and -P (pid file) options.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1411 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoNo use expanding tags unless there *are* tags...
des [Fri, 11 May 2007 11:17:09 +0000 (11:17 +0000)]
No use expanding tags unless there *are* tags...

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1410 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoExpand tags.
des [Fri, 11 May 2007 11:15:46 +0000 (11:15 +0000)]
Expand tags.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1409 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoPull flopen() and pidfile_*() (renamed to vpf_*()) from FreeBSD.
des [Fri, 11 May 2007 11:14:32 +0000 (11:14 +0000)]
Pull flopen() and pidfile_*() (renamed to vpf_*()) from FreeBSD.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1408 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoTweak DEVELOPER_CFLAGS.
des [Fri, 11 May 2007 11:06:38 +0000 (11:06 +0000)]
Tweak DEVELOPER_CFLAGS.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1407 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoComment out comparisons which are always true (unsigned >= 0)
des [Fri, 11 May 2007 11:06:03 +0000 (11:06 +0000)]
Comment out comparisons which are always true (unsigned >= 0)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1406 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agogit-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1404 d4fa192b-c00b-0410...
ingvar [Fri, 11 May 2007 08:13:03 +0000 (08:13 +0000)]
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1404 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years ago* Fri May 11 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-20070511
ingvar [Fri, 11 May 2007 07:51:11 +0000 (07:51 +0000)]
* Fri May 11 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.0.svn-20070511
- Threw latest changes into svn trunk
- Removed the conversion of manpages into utf8. They are all utf8 in trunk

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1403 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoCorrectly detect more incompatible automake versions.
des [Wed, 9 May 2007 14:37:04 +0000 (14:37 +0000)]
Correctly detect more incompatible automake versions.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1399 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoImplement runtime part of VCL controlled hashing.
phk [Wed, 9 May 2007 14:28:50 +0000 (14:28 +0000)]
Implement runtime part of VCL controlled hashing.

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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1398 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoMake req.hash have the right internal type: char *
phk [Wed, 9 May 2007 13:55:39 +0000 (13:55 +0000)]
Make req.hash have the right internal type: char *

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1397 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoUse struct sockaddr_storage instead of our own homegrown hack.
phk [Wed, 9 May 2007 12:08:41 +0000 (12:08 +0000)]
Use struct sockaddr_storage instead of our own homegrown hack.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1396 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoMark variables/objects as having a string representation or not
phk [Wed, 9 May 2007 11:07:59 +0000 (11:07 +0000)]
Mark variables/objects as having a string representation or not
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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1395 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAfter compilation of a VCL program, do a test-load into the management
phk [Wed, 9 May 2007 10:55:33 +0000 (10:55 +0000)]
After compilation of a VCL program, do a test-load into the management
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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1394 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoDon't use sockaddr->sa_len, it was too advanced for POSIX people
phk [Wed, 9 May 2007 09:45:01 +0000 (09:45 +0000)]
Don't use sockaddr->sa_len, it was too advanced for POSIX people

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1393 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoDon't use sockaddr->sa_len, it was too advanced for POSIX people.
phk [Wed, 9 May 2007 09:44:35 +0000 (09:44 +0000)]
Don't use sockaddr->sa_len, it was too advanced for POSIX people.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1392 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd back a check that was lost: You must have at least one backend.
phk [Wed, 9 May 2007 08:44:28 +0000 (08:44 +0000)]
Add back a check that was lost:  You must have at least one backend.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1391 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoAdd support for checking "server.ip" in addition to "client.ip".
phk [Wed, 9 May 2007 08:39:50 +0000 (08:39 +0000)]
Add support for checking "server.ip" in addition to "client.ip".

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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1390 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoImplement '==' and '!=' for IP number variables (presently only client.ip)
phk [Wed, 9 May 2007 08:06:00 +0000 (08:06 +0000)]
Implement '==' and '!=' for IP number variables (presently only client.ip)

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: svn+ssh://projects.linpro.no/svn/varnish/trunk@1389 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoSanitize generation of white-space in generated C code.
phk [Wed, 9 May 2007 07:59:22 +0000 (07:59 +0000)]
Sanitize generation of white-space in generated C code.

(It is my intent that the compiled-to C-source should have sensible
readability)

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1388 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoUpdate the default configuration.
des [Sun, 6 May 2007 18:57:26 +0000 (18:57 +0000)]
Update the default configuration.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1387 d4fa192b-c00b-0410-8231-f00ffab90ce4

17 years agoLook for s-maxage before max-age. This may need to be revisited.
des [Sat, 5 May 2007 14:44:37 +0000 (14:44 +0000)]
Look for s-maxage before max-age.  This may need to be revisited.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1386 d4fa192b-c00b-0410-8231-f00ffab90ce4