]> err.no Git - varnish/log
varnish
17 years agoSince the previous commit added a chdir() to our temp directory, we can stop
des [Mon, 18 Jun 2007 07:52:19 +0000 (07:52 +0000)]
Since the previous commit added a chdir() to our temp directory, we can stop
juggling file names and simply do everything relative to our cwd.

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

17 years agoFurther tweak_name() improvements: restructure to reduce indentation; simplify
des [Mon, 18 Jun 2007 07:31:50 +0000 (07:31 +0000)]
Further tweak_name() improvements: restructure to reduce indentation; simplify
error handling; use a regexp to check the name syntax; check CLI errors after
the getopt() loop.

Discussed with: ceciliehf

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

17 years agoDon't allow len to go negative if the header is empty.
des [Sun, 17 Jun 2007 15:10:08 +0000 (15:10 +0000)]
Don't allow len to go negative if the header is empty.

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

17 years agoAdded a glossy Dia-diagram showing the overall structure of the test framework.
knutroy [Fri, 15 Jun 2007 17:06:15 +0000 (17:06 +0000)]
Added a glossy Dia-diagram showing the overall structure of the test framework.

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

17 years agoAdded some documentation.
knutroy [Fri, 15 Jun 2007 17:04:16 +0000 (17:04 +0000)]
Added some documentation.

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

17 years agoA change in the default value of the name, and test for correct naming convention
cecilihf [Fri, 15 Jun 2007 12:26:56 +0000 (12:26 +0000)]
A change in the default value of the name, and test for correct naming convention

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

17 years agoImprove the report further.
des [Fri, 15 Jun 2007 11:23:13 +0000 (11:23 +0000)]
Improve the report further.

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

17 years agoUse mode 0755 rather than 0600 for the state directory.
des [Fri, 15 Jun 2007 10:52:57 +0000 (10:52 +0000)]
Use mode 0755 rather than 0600 for the state directory.

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

17 years agoSlight improvements on Cecilie's commit: correct nroff style and man page
des [Fri, 15 Jun 2007 10:40:53 +0000 (10:40 +0000)]
Slight improvements on Cecilie's commit: correct nroff style and man page
wording, constify varnish_name, move default name logic into VSL_Open*().

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

17 years agoForgot to remove this line (it was moved further down)
cecilihf [Fri, 15 Jun 2007 09:27:29 +0000 (09:27 +0000)]
Forgot to remove this line (it was moved further down)

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

17 years ago\n is not expanded in single-quoted strings.
des [Fri, 15 Jun 2007 09:26:54 +0000 (09:26 +0000)]
\n is not expanded in single-quoted strings.

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

17 years agoAdd reporting functionality.
des [Fri, 15 Jun 2007 09:23:25 +0000 (09:23 +0000)]
Add reporting functionality.

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

17 years agoAdded the -n option for specifying a name for varnishd. All files are now stored...
cecilihf [Fri, 15 Jun 2007 09:18:06 +0000 (09:18 +0000)]
Added the -n option for specifying a name for varnishd. All files are now stored under /tmp/<name> where
<name> is either a specified name or the hostname. All the varnish tools have also been updated to let the user
specify the name of the varnish instance to use. The name must conform to the hostname standard, but a test
for this is not yet implemented.

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

17 years agoCatch up with framework changes.
des [Fri, 15 Jun 2007 09:03:34 +0000 (09:03 +0000)]
Catch up with framework changes.

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

17 years agoAdd code to enumerate all available cases. If no case name is specified,
des [Thu, 14 Jun 2007 17:07:46 +0000 (17:07 +0000)]
Add code to enumerate all available cases.  If no case name is specified,
varnish-regress.pl will now run them all.  Also simplify MAIN a bit.

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

17 years agoRemove -T now that the framework runs as an unprivileged user.
des [Thu, 14 Jun 2007 16:47:13 +0000 (16:47 +0000)]
Remove -T now that the framework runs as an unprivileged user.

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

17 years agoConsistently replace croak with die, and fix a couple of cases where $@ was
des [Thu, 14 Jun 2007 16:44:59 +0000 (16:44 +0000)]
Consistently replace croak with die, and fix a couple of cases where $@ was
incorrectly used in place of $!.

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

17 years agoRather than start and stop the engine for every test case, just stop (and
des [Thu, 14 Jun 2007 16:38:58 +0000 (16:38 +0000)]
Rather than start and stop the engine for every test case, just stop (and
restart) it if a test failed.

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

17 years agoOops - don't lie about closing the connection.
des [Thu, 14 Jun 2007 14:14:12 +0000 (14:14 +0000)]
Oops - don't lie about closing the connection.

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

17 years agoAdd a simple test case for Vary: handling.
des [Thu, 14 Jun 2007 14:12:32 +0000 (14:12 +0000)]
Add a simple test case for Vary: handling.

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

17 years agoMiscellaneous improvements to regression test framework, most notably
knutroy [Thu, 14 Jun 2007 12:08:15 +0000 (12:08 +0000)]
Miscellaneous improvements to regression test framework, most notably
changes regarding how events are processed. We now state what events
we are waiting for when calling run_loop. The central event dispatcher
monitors this list and decides when to pause the loop. Return value
from run_loop is the event name and whatever arguments were sent by
the event creator, if the event triggered no explicit handler, or
otherwise, the return value(s) from the event handler. If subsequent
events occur between a loop-pausing event and the time the loop
actually pauses, such events are queued and eligible candidates for
return value of the next call to run_loop. This way, events will not
be lost accidentally, which might happen in previous revisions.

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

17 years agoRemove the "magic" StartChild, StopChild and LoadVCL test cases. Instead,
des [Wed, 13 Jun 2007 11:26:09 +0000 (11:26 +0000)]
Remove the "magic" StartChild, StopChild and LoadVCL test cases.  Instead,
Case.pm now has init() and fini() (which can of course be overloaded by
individual test classes) which start / stop the child, and load a VCL
script if the particular test class being run provides one.  In addition,
fini() will revert to the initial VCL script ("boot") if a custom script
was loaded by init().

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

17 years agoLet send_command() take care of quoting and assembling the command.
des [Wed, 13 Jun 2007 11:12:07 +0000 (11:12 +0000)]
Let send_command() take care of quoting and assembling the command.

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

17 years agoRewrote much of regression test framework.
knutroy [Tue, 12 Jun 2007 12:26:03 +0000 (12:26 +0000)]
Rewrote much of regression test framework.
Test-cases for tickets #56 and #102 are included.
Test-case for #102 breaks on r1506 (onwards).

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

17 years agoFix FreeBSDism (#113).
des [Tue, 12 Jun 2007 07:12:02 +0000 (07:12 +0000)]
Fix FreeBSDism (#113).

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

17 years agoChanges needed for varnishadm.
cecilihf [Mon, 11 Jun 2007 07:10:55 +0000 (07:10 +0000)]
Changes needed for varnishadm.

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

17 years agoGive my anal retentive tendencies free rein, and remove a blank line at the
des [Sun, 10 Jun 2007 11:46:05 +0000 (11:46 +0000)]
Give my anal retentive tendencies free rein, and remove a blank line at the
end of the file.

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

17 years agoTake a shot at light-weight "Vary:" processing.
phk [Sun, 10 Jun 2007 08:49:43 +0000 (08:49 +0000)]
Take a shot at light-weight "Vary:" processing.

When we cache an object with a "Vary:" header, we generate
a "vary matching string" which can be used to efficiently
check for compliance when doing a cache lookup.

Only very lightly tested (ie: cnn.com).

For a full description of the reasoning, please see
http://varnish.projects.linpro.no/wiki/ArchitectureVary

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

17 years agoFix a bug I introduced in the workspace rewamp: Don't throw away
phk [Sun, 10 Jun 2007 07:47:50 +0000 (07:47 +0000)]
Fix a bug I introduced in the workspace rewamp: Don't throw away
perfectly good pipelined data.

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

17 years agolibcompat must come after libvarnish because the latter now uses
phk [Sun, 10 Jun 2007 07:19:21 +0000 (07:19 +0000)]
libcompat must come after libvarnish because the latter now uses
strndup which might come from the former.

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

17 years agoUpdate the Linpro copyright.
des [Thu, 7 Jun 2007 09:40:20 +0000 (09:40 +0000)]
Update the Linpro copyright.

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

17 years agoAdded a utility for sending a single command to varnishd via telnet, and printing...
cecilihf [Thu, 7 Jun 2007 09:00:56 +0000 (09:00 +0000)]
Added a utility for sending a single command to varnishd via telnet, and printing the result.

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

17 years agoRevert part of r1484, I got it exactly backwards.
des [Wed, 6 Jun 2007 15:25:54 +0000 (15:25 +0000)]
Revert part of r1484, I got it exactly backwards.

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

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