]> err.no Git - varnish/log
varnish
16 years agoCoverage testcase for vcc_action.c
phk [Sun, 5 Oct 2008 21:55:35 +0000 (21:55 +0000)]
Coverage testcase for vcc_action.c

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

16 years agoTry to get two more lines in vcc_acl.c
phk [Sun, 5 Oct 2008 21:34:51 +0000 (21:34 +0000)]
Try to get two more lines in vcc_acl.c

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

16 years agoTry to hit a couple of lines more in vcc_acl.c
phk [Sun, 5 Oct 2008 21:02:48 +0000 (21:02 +0000)]
Try to hit a couple of lines more in vcc_acl.c

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

16 years agoMore vcc_acl.c coverage testing
phk [Sun, 5 Oct 2008 20:51:01 +0000 (20:51 +0000)]
More vcc_acl.c coverage testing

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

16 years agoCoverage test for vcc_acl
phk [Sun, 5 Oct 2008 20:37:15 +0000 (20:37 +0000)]
Coverage test for vcc_acl

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

16 years agoMore coverage testing for vcc_parse.c
phk [Sun, 5 Oct 2008 20:13:32 +0000 (20:13 +0000)]
More coverage testing for vcc_parse.c

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

16 years agoMake an error message slightly less confusing.
phk [Sun, 5 Oct 2008 20:09:40 +0000 (20:09 +0000)]
Make an error message slightly less confusing.

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

16 years agoClear buffers before we start.
phk [Sun, 5 Oct 2008 10:40:46 +0000 (10:40 +0000)]
Clear buffers before we start.

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

16 years agoVCC coverage case
phk [Sun, 5 Oct 2008 10:31:50 +0000 (10:31 +0000)]
VCC coverage case

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

16 years agoMake it possible to say:
phk [Sun, 5 Oct 2008 10:31:23 +0000 (10:31 +0000)]
Make it possible to say:

if (req.backend == b1)

in VCL.

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

16 years agoUse built in delay function
phk [Sun, 5 Oct 2008 10:23:12 +0000 (10:23 +0000)]
Use built in delay function

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

16 years agoUnused prototype, stats are under varnish branch of command tree.
phk [Sun, 5 Oct 2008 10:22:53 +0000 (10:22 +0000)]
Unused prototype, stats are under varnish branch of command tree.

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

16 years agoEmit a message when we sleep, so people know why nothing happens.
phk [Sun, 5 Oct 2008 10:22:21 +0000 (10:22 +0000)]
Emit a message when we sleep, so people know why nothing happens.

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

16 years agoAdd a pidfile for varnishd
phk [Wed, 1 Oct 2008 08:27:59 +0000 (08:27 +0000)]
Add a pidfile for varnishd

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

16 years agoRemove obj.valid from documentation
tfheen [Tue, 30 Sep 2008 06:24:13 +0000 (06:24 +0000)]
Remove obj.valid from documentation

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

16 years agoMalloc is ready for production, mark it so in the docs
tfheen [Mon, 29 Sep 2008 12:10:12 +0000 (12:10 +0000)]
Malloc is ready for production, mark it so in the docs

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

16 years agovarnishncsa.1: Add -f to summary too
tfheen [Mon, 29 Sep 2008 12:00:54 +0000 (12:00 +0000)]
varnishncsa.1: Add -f to summary too

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

16 years agoMerge branch 'cflags_for_vcl'
tfheen [Mon, 29 Sep 2008 10:52:34 +0000 (10:52 +0000)]
Merge branch 'cflags_for_vcl'

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

16 years agoMake it possible to make varnishncsa prefer X-Forwarded-For
tfheen [Mon, 29 Sep 2008 10:49:12 +0000 (10:49 +0000)]
Make it possible to make varnishncsa prefer X-Forwarded-For

Add -f to varnishncsa, this makes varnishncsa prefer X-Forwarded-For
over client.ip

Closes: #335
Thanks to "191919" for the patch.

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

16 years agoMake overriding VCC_CC possible
Tollef Fog Heen [Mon, 29 Sep 2008 10:37:33 +0000 (12:37 +0200)]
Make overriding VCC_CC possible

also, remove $CFLAGS from default compilation flags.

This properly fixes #333

16 years agoWhen a VCL subroutine does not terminate in an action, the compiled code
phk [Mon, 29 Sep 2008 08:12:19 +0000 (08:12 +0000)]
When a VCL subroutine does not terminate in an action, the compiled code
needs to explicitly set a return value of zero to say so.

Possibly fix for: #339

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

16 years agoSplit vcc_Coord() function out from vcc_ErrWhere(), to give a set
phk [Mon, 29 Sep 2008 08:11:06 +0000 (08:11 +0000)]
Split vcc_Coord() function out from vcc_ErrWhere(), to give a set
of source coordinates in human readable form in a vsb.

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

16 years agoConstify a couple of strings.
phk [Mon, 29 Sep 2008 07:32:26 +0000 (07:32 +0000)]
Constify a couple of strings.

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

16 years agoLook for kqueue on Darwin 9.* as per ticket #338
phk [Sun, 28 Sep 2008 09:46:28 +0000 (09:46 +0000)]
Look for kqueue on Darwin 9.* as per ticket #338

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

16 years agoTake another swing at #320:
phk [Fri, 26 Sep 2008 14:18:00 +0000 (14:18 +0000)]
Take another swing at #320:

In addition to forcing esi:includes to be GET, we also need to nuke the
Content-Lenght header from the received request, because we already
dealt with that during the primary transaction.

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

16 years agoCheck for the expected exit status from varnishd
phk [Fri, 26 Sep 2008 14:06:52 +0000 (14:06 +0000)]
Check for the expected exit status from varnishd

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

16 years agoA couple of FlexeLint nits
phk [Fri, 26 Sep 2008 13:20:18 +0000 (13:20 +0000)]
A couple of FlexeLint nits

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

16 years agoConstify three strings in compiled VCL data structure vrt_backend
phk [Fri, 26 Sep 2008 13:07:51 +0000 (13:07 +0000)]
Constify three strings in compiled VCL data structure vrt_backend

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

16 years agoAdd a test to see that the VCL compiler works.
phk [Fri, 26 Sep 2008 12:13:37 +0000 (12:13 +0000)]
Add a test to see that the VCL compiler works.

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

16 years agoAlways add CFLAGS to VCC_CC
tfheen [Fri, 26 Sep 2008 11:59:07 +0000 (11:59 +0000)]
Always add CFLAGS to VCC_CC

Make sure we include any CFLAGS passed to configure in VCC_CC.
Fixes #333.

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

16 years agoWhitespace changes to make rpmlint more happy
ingvar [Fri, 26 Sep 2008 07:09:57 +0000 (07:09 +0000)]
Whitespace changes to make rpmlint more happy

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

16 years agoFix #320: All esi:includes should be picked up with GET,
phk [Thu, 25 Sep 2008 21:39:02 +0000 (21:39 +0000)]
Fix #320:  All esi:includes should be picked up with GET,
also if the original request was a PASS'ed POST.

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

16 years agoUpdate spec file for beta 2
tfheen [Thu, 25 Sep 2008 12:35:50 +0000 (12:35 +0000)]
Update spec file for beta 2

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

16 years agoSet release back to trunk
tfheen [Wed, 24 Sep 2008 18:35:40 +0000 (18:35 +0000)]
Set release back to trunk

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

16 years agoRelease 2.0 beta 2
tfheen [Wed, 24 Sep 2008 18:34:35 +0000 (18:34 +0000)]
Release 2.0 beta 2

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

16 years agoBe explicit about setting SUBDIRS_DIST
tfheen [Wed, 24 Sep 2008 18:04:29 +0000 (18:04 +0000)]
Be explicit about setting SUBDIRS_DIST

Make sure we don't end up having libjemalloc twice in SUBDIRS_DIST as
this will cause failures when doing make distclean.

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

16 years agoCommit generated file
tfheen [Wed, 24 Sep 2008 13:33:43 +0000 (13:33 +0000)]
Commit generated file

Regenerate vcc_fixed_token.c for VRT_backend_string.

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

16 years agoFix auto* warning
tfheen [Wed, 24 Sep 2008 13:21:19 +0000 (13:21 +0000)]
Fix auto* warning

-version-info isn't used by static libs, so lose that.

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

16 years agoBuild fixes
tfheen [Wed, 24 Sep 2008 13:21:18 +0000 (13:21 +0000)]
Build fixes

* Make sure we distribute the libjemalloc directory.
* Also make sure we distribute rb.h and the rest of the source jemalloc
  came with.
* Get rid of some pre-autoconfiscation code from Makefile.am

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

16 years agoUse jemalloc by default on Linux
tfheen [Wed, 24 Sep 2008 12:41:29 +0000 (12:41 +0000)]
Use jemalloc by default on Linux

We seem to run into trouble with regular glibc malloc on Linux, so use
jemalloc instead of glibc's malloc.

This can be disabled using --disable-jemalloc

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

16 years agoImport jemalloc
tfheen [Wed, 24 Sep 2008 12:41:27 +0000 (12:41 +0000)]
Import jemalloc

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

16 years agoUpdate man page a bit
tfheen [Tue, 23 Sep 2008 11:58:53 +0000 (11:58 +0000)]
Update man page a bit

* Directors
* Probing and backend health
* vcl_hash
* Updates for 2.0 (backend.host => .host; insert => deliver)

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

16 years agoSupposedly the fix for #324: An oversight in r3188
phk [Mon, 22 Sep 2008 13:36:34 +0000 (13:36 +0000)]
Supposedly the fix for #324:  An oversight in r3188

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

16 years agoLost on the big director shuffle:
phk [Mon, 22 Sep 2008 09:35:03 +0000 (09:35 +0000)]
Lost on the big director shuffle:

Link client side log records to backend side log records with the "Backend"
record.

Content is:
Fd# of backend connection
VCL name of director
VCL name of chosen backend.

Spotted by: sky

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

16 years agoUse 127.0.0.1 instead of localhost to test the ports argument, localhost
phk [Mon, 22 Sep 2008 08:15:31 +0000 (08:15 +0000)]
Use 127.0.0.1 instead of localhost to test the ports argument, localhost
may not resolve.

Remind me to change this when IPv4 goes away :-)

Fixes #327

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

16 years agoAdd the feature requested in #266: ignore non-esi tags entirely.
phk [Sun, 21 Sep 2008 07:36:05 +0000 (07:36 +0000)]
Add the feature requested in #266:  ignore non-esi tags entirely.

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

16 years agoEliminate a pointless local variable.
phk [Sun, 21 Sep 2008 07:30:56 +0000 (07:30 +0000)]
Eliminate a pointless local variable.

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

16 years agoFix #326: Don't emit zerolength verbatim strings before esi:include
phk [Sun, 21 Sep 2008 06:49:38 +0000 (06:49 +0000)]
Fix #326:  Don't emit zerolength verbatim strings before esi:include

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

16 years agoAdd a "resp.bodylen" variable we can expect on, so we can test the
phk [Sun, 21 Sep 2008 06:47:37 +0000 (06:47 +0000)]
Add a "resp.bodylen" variable we can expect on, so we can test the
length of a reply in chunked encoding

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

16 years agoImplement correct handling of the Expect: header.
phk [Fri, 19 Sep 2008 20:49:30 +0000 (20:49 +0000)]
Implement correct handling of the Expect: header.

Fixes #309

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

16 years agoStrip trailing whitespace on header lines from the stored result.
phk [Fri, 19 Sep 2008 20:47:32 +0000 (20:47 +0000)]
Strip trailing whitespace on header lines from the stored result.

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

16 years agoMake sure we always close the client connection if we pass through
phk [Fri, 19 Sep 2008 20:20:10 +0000 (20:20 +0000)]
Make sure we always close the client connection if we pass through
vcl_error{}

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

16 years agoDon't crash if the backend sends only "HTTP/1.1 200" with no reason string.
phk [Fri, 19 Sep 2008 16:27:44 +0000 (16:27 +0000)]
Don't crash if the backend sends only "HTTP/1.1 200" with no reason string.

Fixes #325

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

16 years agoReally fix TCL build dependency
tfheen [Fri, 19 Sep 2008 12:17:28 +0000 (12:17 +0000)]
Really fix TCL build dependency

Make sure we never fail even if tclsh is not installed, and make sure
to emit a message if the .c and .h files should be rebuilt.

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

16 years agoMake sure to set TCLSH to an invocation of missing when it is not found. Fix for...
tfheen [Thu, 18 Sep 2008 14:05:05 +0000 (14:05 +0000)]
Make sure to set TCLSH to an invocation of missing when it is not found.  Fix for the commit in #3196

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

16 years agovarnishtest does not need ncurses
tfheen [Thu, 18 Sep 2008 13:23:34 +0000 (13:23 +0000)]
varnishtest does not need ncurses

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

16 years agofix typo in error message
tfheen [Thu, 18 Sep 2008 13:16:09 +0000 (13:16 +0000)]
fix typo in error message

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

16 years agoMore fixups for regeneration of generated .c and .h files
tfheen [Thu, 18 Sep 2008 13:04:46 +0000 (13:04 +0000)]
More fixups for regeneration of generated .c and .h files

vcc_fixed_token.c and vcc_token_defs.h depend on various files in
include/, not only the .tcl file.

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

16 years agoAdd string representation of backend
tfheen [Wed, 17 Sep 2008 10:04:47 +0000 (10:04 +0000)]
Add string representation of backend

This takes the name from the name assigned in the VCL.

Partially fixes #294.

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

16 years agoRegenerate generated .c files if we have tclsh installed
tfheen [Wed, 17 Sep 2008 07:49:28 +0000 (07:49 +0000)]
Regenerate generated .c files if we have tclsh installed

As well as the above, add .tcl files to EXTRA_DIST so we can
regenerate them and make distcheck works.

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

16 years agoGet sense of boolean test right way in second try
phk [Tue, 16 Sep 2008 19:32:01 +0000 (19:32 +0000)]
Get sense of boolean test right way in second try

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

16 years agoDon't bail if the client has closed the TCP connection.
phk [Tue, 16 Sep 2008 19:00:21 +0000 (19:00 +0000)]
Don't bail if the client has closed the TCP connection.

Fixes #284

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

16 years agoESI processing should ignore responses with no body.
phk [Tue, 16 Sep 2008 18:56:10 +0000 (18:56 +0000)]
ESI processing should ignore responses with no body.

Fixes #318

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

16 years agoFixed pidfile issues in redhat package
ingvar [Tue, 16 Sep 2008 12:25:46 +0000 (12:25 +0000)]
Fixed pidfile issues in redhat package

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

16 years agoFix typo; makes this compile again
tfheen [Tue, 16 Sep 2008 11:27:44 +0000 (11:27 +0000)]
Fix typo; makes this compile again

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

16 years agoDoc fixes
tfheen [Tue, 16 Sep 2008 08:29:18 +0000 (08:29 +0000)]
Doc fixes

esi_syntax is a bitmap, not a restart.

max_esi_includes is a number of includes, not a number of restarts
(and remove some bit of doc accidentially copied from max_restarts)

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

16 years agoWe are not a GNU project; make that clear in configure.ac
tfheen [Tue, 16 Sep 2008 07:32:03 +0000 (07:32 +0000)]
We are not a GNU project; make that clear in configure.ac

autoreconf complains if we don't specify "foreign" in the options to
AM_INIT_AUTOMAKE, so do that.

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

16 years agoAlways update stats in wrk_decimate_flock
tfheen [Tue, 16 Sep 2008 07:30:33 +0000 (07:30 +0000)]
Always update stats in wrk_decimate_flock

Make sure to update the stats even if we don't kill off any excess
threads.

Fixes #308

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

16 years agoDynamically field widths in varnishtop
tfheen [Tue, 16 Sep 2008 07:30:30 +0000 (07:30 +0000)]
Dynamically field widths in varnishtop

Set the second column field width in varnishtop based on the longest
field in VSL_tags rather than hard-coding a value.

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

16 years agoPut comments in the default VCL to make people stop frobbing stuff
phk [Mon, 15 Sep 2008 11:47:15 +0000 (11:47 +0000)]
Put comments in the default VCL to make people stop frobbing stuff
we don't support yet.

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

16 years agodefault logfile for varnishncsa on redhat/fedora is /var/log/varnish/varnishncsa.log
ingvar [Fri, 12 Sep 2008 12:30:50 +0000 (12:30 +0000)]
default logfile for varnishncsa on redhat/fedora is /var/log/varnish/varnishncsa.log

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

16 years ago* Fri Sep 12 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.8.20080912svn3184
ingvar [Fri, 12 Sep 2008 11:54:50 +0000 (11:54 +0000)]
* Fri Sep 12 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.8.20080912svn3184
- Added varnisnsca init script (Colin Hill)
- Corrected varnishlog init script (Colin Hill)
Fixes #223

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

16 years agoDon't allocate space for a %u and then stick a %d in it.
phk [Fri, 12 Sep 2008 09:39:35 +0000 (09:39 +0000)]
Don't allocate space for a %u and then stick a %d in it.

Tripped by: anordby

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

16 years agoFix #315:
phk [Fri, 12 Sep 2008 08:51:02 +0000 (08:51 +0000)]
Fix #315:

Rename worker->used to worker->lastused and make it an optimization to
set it from a convenient timestamp along the way.

If it is not set when the thread goes on the unemployment queue, expend
a timestamp on setting it.

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

16 years agoInitialize obj->entered to NAN so our asserts will detect if it is not
phk [Fri, 12 Sep 2008 07:36:21 +0000 (07:36 +0000)]
Initialize obj->entered to NAN so our asserts will detect if it is not
properly set.

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

16 years agoAssert that we have obj->entered before we calculate TTL using it.
phk [Fri, 12 Sep 2008 07:32:04 +0000 (07:32 +0000)]
Assert that we have obj->entered before we calculate TTL using it.

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

16 years agoUse the obj->entered timestamp when inserting into the expiry structures.
phk [Fri, 12 Sep 2008 07:25:51 +0000 (07:25 +0000)]
Use the obj->entered timestamp when inserting into the expiry structures.

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

16 years agoFix Typo
phk [Wed, 10 Sep 2008 19:11:11 +0000 (19:11 +0000)]
Fix Typo

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

16 years agoAdd more asserts on worker->used
phk [Wed, 10 Sep 2008 13:25:37 +0000 (13:25 +0000)]
Add more asserts on worker->used

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

16 years agoMake the size of the workerthreads local shmlog workspace a paramter.
phk [Wed, 10 Sep 2008 12:08:56 +0000 (12:08 +0000)]
Make the size of the workerthreads local shmlog workspace a paramter.

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

16 years agoHack for Fedora to get 32- and 64-bits tests run concurrently on the same build machine
ingvar [Tue, 9 Sep 2008 09:30:58 +0000 (09:30 +0000)]
Hack for Fedora to get 32- and 64-bits tests run concurrently on the same build machine

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

16 years agoFix an off-by-one error in the random director, which made it unable to
phk [Mon, 8 Sep 2008 18:12:19 +0000 (18:12 +0000)]
Fix an off-by-one error in the random director, which made it unable to
use the single remaining healthy backend.

Add regression test.

Fixes: ticket #306
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3174 d4fa192b-c00b-0410-8231-f00ffab90ce4

16 years agoAdd -bodylen which creates a synthetic body of the specified length.
phk [Mon, 8 Sep 2008 17:34:16 +0000 (17:34 +0000)]
Add -bodylen which creates a synthetic body of the specified length.

The generated body is the classic drum-printer test pattern:

!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_\n
"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`\n
#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a\n
$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`ab\n

The last char is always a \n

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

16 years agoAdd PTHREAD_LIBS for OpenBSD compat.
phk [Mon, 8 Sep 2008 16:53:30 +0000 (16:53 +0000)]
Add PTHREAD_LIBS for OpenBSD compat.

Ticket #314

Submitted by: bonetruck2

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

16 years agoOn platforms with multibyte sa_family and big endian, the compiled
phk [Mon, 8 Sep 2008 14:30:31 +0000 (14:30 +0000)]
On platforms with multibyte sa_family and big endian, the compiled
ACLs would not work, as evidenced by #311.

Add a log message for unknown sa_families, and use memmove to extract
the sa_family member of the sockaddr into a suitably sized variable.

Diagnosed by: Mithrandir
Fixes: #311

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

16 years agoAdd VRT_memmove() to the VRT API.
phk [Mon, 8 Sep 2008 14:22:42 +0000 (14:22 +0000)]
Add VRT_memmove() to the VRT API.

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

16 years agoRename backend.health to req.backend.health and add test
tfheen [Mon, 8 Sep 2008 09:49:01 +0000 (09:49 +0000)]
Rename backend.health to req.backend.health and add test

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

16 years agoRegenerate vcc_fixed_token.c
tfheen [Mon, 8 Sep 2008 09:47:08 +0000 (09:47 +0000)]
Regenerate vcc_fixed_token.c

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

16 years agoRevert commit 3163, fix in VRT_purge instead.
tfheen [Mon, 8 Sep 2008 07:42:25 +0000 (07:42 +0000)]
Revert commit 3163, fix in VRT_purge instead.

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

16 years agoAdd obj.hits VRT variable which counts how many *previous* hits
phk [Sun, 7 Sep 2008 17:31:13 +0000 (17:31 +0000)]
Add obj.hits VRT variable which counts how many *previous* hits
this object has seen.

Idea for prefetching being used as workaround for #310

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

16 years agoHrmpf!
phk [Sun, 7 Sep 2008 17:24:09 +0000 (17:24 +0000)]
Hrmpf!

A "unsigned *" is not the same as a "unsigned"

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

16 years agoMake backend.healthy available to VCL (Fixes: #312)
tfheen [Sun, 7 Sep 2008 07:47:39 +0000 (07:47 +0000)]
Make backend.healthy available to VCL (Fixes: #312)

It'll typically be used in a manner similar to:

    if (! backend.healthy) {
        error 500 "Backend sick!";
    }

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

16 years agoDon't segfault on purge.hash() with NULL string. Fixes #307.
tfheen [Sun, 7 Sep 2008 07:47:26 +0000 (07:47 +0000)]
Don't segfault on purge.hash() with NULL string.  Fixes #307.

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

16 years agoAdd an explicit "allow everybody else" entry in the negative ACL.
phk [Wed, 3 Sep 2008 13:26:36 +0000 (13:26 +0000)]
Add an explicit "allow everybody else" entry in the negative ACL.

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

16 years agoCater for even more INET6 API stupidity.
phk [Wed, 3 Sep 2008 13:20:45 +0000 (13:20 +0000)]
Cater for even more INET6 API stupidity.

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

16 years agoUse the correct buffer size for IPv6 addresses.
phk [Wed, 3 Sep 2008 13:03:22 +0000 (13:03 +0000)]
Use the correct buffer size for IPv6 addresses.

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

16 years agoAdd <unistd.h> so heritage.h is happy on macosx.
phk [Wed, 3 Sep 2008 07:37:05 +0000 (07:37 +0000)]
Add <unistd.h> so heritage.h is happy on macosx.

fixes #305

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

16 years agoPull in pthreads library for openbsd (ticket #304)
phk [Wed, 3 Sep 2008 07:25:27 +0000 (07:25 +0000)]
Pull in pthreads library for openbsd (ticket #304)

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

16 years agoRepeat after me: test after fixing.
phk [Tue, 2 Sep 2008 20:20:48 +0000 (20:20 +0000)]
Repeat after me: test after fixing.

Try to nail r297 again

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

16 years agoAttempt to close #297 again: shutdown() can also return ENOTCONN error
phk [Tue, 2 Sep 2008 19:53:04 +0000 (19:53 +0000)]
Attempt to close #297 again:  shutdown() can also return ENOTCONN error
on redhat.

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