]> err.no Git - varnish/log
varnish
16 years agoRemember to set lock "held" in CondWait
phk [Tue, 11 Nov 2008 13:43:01 +0000 (13:43 +0000)]
Remember to set lock "held" in CondWait

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

16 years agoHave I mentioned that I think POSIX is a bunch of amateurs ?
phk [Tue, 11 Nov 2008 13:38:09 +0000 (13:38 +0000)]
Have I mentioned that I think POSIX is a bunch of amateurs ?

There is no NULL value for pthread_t and you have to call a function
to compare them.

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

16 years agoReact to both NL and CR in VLU
phk [Tue, 11 Nov 2008 13:15:01 +0000 (13:15 +0000)]
React to both NL and CR in VLU

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

16 years agoRemember to add this file in second attempt :-)
phk [Mon, 10 Nov 2008 19:48:08 +0000 (19:48 +0000)]
Remember to add this file in second attempt :-)

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

16 years agoTake the full step and wrap all our mutex operations in proper C functions
phk [Mon, 10 Nov 2008 19:46:25 +0000 (19:46 +0000)]
Take the full step and wrap all our mutex operations in proper C functions
instead of increasingly unwieldy macros.

Amongst other things, this will make it much easier to do lock
profiling, contest statistics, asserts etc.

This commit is largely mechanically generated and should not result in
any changed functionality.

Locks retain the "mtx" monicker, as a reminder that they are mutexes.

No performance impact expected.

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

16 years agospecfile: 2.0.1-2 -> 2.0.2-1 and a changelog item for 2.0.2
ingvar [Mon, 10 Nov 2008 12:43:58 +0000 (12:43 +0000)]
specfile: 2.0.1-2 -> 2.0.2-1 and a changelog item for 2.0.2

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

16 years agoSpecfile: 2.0.1 > 2.0.2
ingvar [Mon, 10 Nov 2008 12:34:49 +0000 (12:34 +0000)]
Specfile: 2.0.1 >  2.0.2

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

16 years agoMake sure the VCL we try to load is a regular file
tfheen [Mon, 10 Nov 2008 11:55:17 +0000 (11:55 +0000)]
Make sure the VCL we try to load is a regular file

Fixes #368

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

16 years agoConstify vcl_tnames in .tcl script too
tfheen [Mon, 10 Nov 2008 11:55:15 +0000 (11:55 +0000)]
Constify vcl_tnames in .tcl script too

Change the .tcl script corresponding to r3364, fixes build failure

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

16 years agoAdd a test of the random director that uses actual randomness.
phk [Mon, 10 Nov 2008 09:40:39 +0000 (09:40 +0000)]
Add a test of the random director that uses actual randomness.

This will be skipped on platforms where srandom(1) does not result
in the same deterministic sequence of random numbers as on FreeBSD
and Linux.

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

16 years agoAdd a toplevel word which examines the sequence returned by
phk [Mon, 10 Nov 2008 09:37:21 +0000 (09:37 +0000)]
Add a toplevel word which examines the sequence returned by
srandom(1) and stops the test if we do not get the same sequence
as we expect.

The Open Group does not define which deterministic sequence srandom(1)
should result in, on that it be deterministic, but I have high hopes
in the general sanity and expect that UNIX people across the board
have realized that for portability the same sequence should be
returned on all platforms.

At the very least FreeBSD and Linux/GLIBC, as seen on projects.linpro.no,
agree.

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

16 years agoAdd a debug CLI command to seed random(3).
phk [Mon, 10 Nov 2008 09:29:52 +0000 (09:29 +0000)]
Add a debug CLI command to seed random(3).

This is a lot less useful than it could have been, as the Open Group
only mandates that:

Like rand(), random() shall produce by default a sequence
of numbers that can be duplicated by calling srandom() with
1 as the seed.

But crucially leaves out *which* sequence of numbers.

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

16 years agoA couple of stylistisc FlexeLint v9 nits, and some additions to the .lnt
phk [Sun, 9 Nov 2008 14:26:24 +0000 (14:26 +0000)]
A couple of stylistisc FlexeLint v9 nits, and some additions to the .lnt
file.

Unfortunately the thread support in FlexeLint is not quite up to our
standards of creative locking.

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

16 years agoMore FlexeLint v9 consts
phk [Sun, 9 Nov 2008 14:25:22 +0000 (14:25 +0000)]
More FlexeLint v9 consts

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

16 years agoConstifications requested by FlexeLint v9
phk [Sun, 9 Nov 2008 13:46:57 +0000 (13:46 +0000)]
Constifications requested by FlexeLint v9

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

16 years agoDocument the size parameter to -s malloc
tfheen [Thu, 6 Nov 2008 11:57:05 +0000 (11:57 +0000)]
Document the size parameter to -s malloc

Fixes #362

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

16 years agoFix up $N vs \N in man page
tfheen [Thu, 6 Nov 2008 11:46:31 +0000 (11:46 +0000)]
Fix up $N vs \N in man page

The VCL man page documented the capturing parentheses as using $N
rather than \N which is actually used.

Fixes #359

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

16 years agoFix up tclsh invocation (again)
tfheen [Thu, 6 Nov 2008 11:45:45 +0000 (11:45 +0000)]
Fix up tclsh invocation (again)

Move the || true bit of invoking tclsh to the Makefile, since
missing would otherwise not pass the file name to tclsh.

Thanks to des for spotting this.

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

16 years agoFix the broken logic in the random directors picking routine.
phk [Wed, 5 Nov 2008 12:51:51 +0000 (12:51 +0000)]
Fix the broken logic in the random directors picking routine.

Drop the consistency check for health-changes, at the cost of a
slight bias[1] for hosts before, or after, then one that changed health,
according to how its health changed.

Count all failures to pick against the retry count.

Fixes #361

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

16 years ago* Sun Nov 02 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0.1-2
ingvar [Sun, 2 Nov 2008 21:39:28 +0000 (21:39 +0000)]
* Sun Nov 02 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0.1-2
- Removed the requirement for kernel => 2.6.0. All supported
  platforms meets this, and it generates strange errors in EPEL

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

16 years agovarnishtest man page: whitespace fix
ssm [Thu, 30 Oct 2008 07:00:00 +0000 (07:00 +0000)]
varnishtest man page: whitespace fix

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

16 years agoAdd a varnishtest man page
ssm [Wed, 29 Oct 2008 06:55:40 +0000 (06:55 +0000)]
Add a varnishtest man page

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

16 years agoFactor the HTTP responsecodes into a file where we can
phk [Tue, 28 Oct 2008 13:22:29 +0000 (13:22 +0000)]
Factor the HTTP responsecodes into a file where we can
find them.

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

16 years agothanks mithrandir -- check the right magic
sky [Tue, 28 Oct 2008 12:33:19 +0000 (12:33 +0000)]
thanks mithrandir -- check the right magic

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

16 years agoresp.status was returning obj.status
sky [Tue, 28 Oct 2008 12:21:15 +0000 (12:21 +0000)]
resp.status was returning obj.status

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

16 years agomerge #3350 into trunk -- make tests fail if you have a long and correct search list...
sky [Mon, 27 Oct 2008 00:36:04 +0000 (00:36 +0000)]
merge #3350 into trunk -- make tests fail if you have a long and correct search list; which my laptop has

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

16 years agoDon't quote the entire inlined C source in the index table, just show C{
phk [Thu, 23 Oct 2008 07:49:19 +0000 (07:49 +0000)]
Don't quote the entire inlined C source in the index table, just show C{

Spotted by: nkallen

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

16 years agoGet rid of <strings.h>.
des [Wed, 22 Oct 2008 11:33:58 +0000 (11:33 +0000)]
Get rid of <strings.h>.

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

16 years agoUse a proper format string.
des [Mon, 20 Oct 2008 20:19:12 +0000 (20:19 +0000)]
Use a proper format string.

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

16 years agoFix warnings on Linux
des [Mon, 20 Oct 2008 20:18:10 +0000 (20:18 +0000)]
Fix warnings on Linux

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

16 years agosvn:ignore
des [Mon, 20 Oct 2008 20:11:16 +0000 (20:11 +0000)]
svn:ignore

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

16 years agoconfig-cache is more trouble than it's worth.
des [Mon, 20 Oct 2008 20:09:51 +0000 (20:09 +0000)]
config-cache is more trouble than it's worth.

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

16 years agoRegenerate, and take the huge-diff hit for the last time.
phk [Mon, 20 Oct 2008 20:06:17 +0000 (20:06 +0000)]
Regenerate, and take the huge-diff hit for the last time.

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

16 years agoBreak the encoded .h files up at convenient newlines, to avoid minor
phk [Mon, 20 Oct 2008 20:05:25 +0000 (20:05 +0000)]
Break the encoded .h files up at convenient newlines, to avoid minor
edits to bases from generating huge diffs.

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

16 years agoClean up some of the fallout from the Solaris patch - mostly configure
des [Mon, 20 Oct 2008 20:02:48 +0000 (20:02 +0000)]
Clean up some of the fallout from the Solaris patch - mostly configure
script breakage.  In particular, disable the sendfile() check, as Solaris
doesn't have a working sendfile() any more than Linux does.  Actually, the
Solaris sendfile code was never compiled or used, because the #ifdefs in
cache_pool.c were all wrong.

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

16 years agoRegen to get Ids right
phk [Mon, 20 Oct 2008 19:57:27 +0000 (19:57 +0000)]
Regen to get Ids right

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

16 years agoRevert r3072, which was a no-op.
des [Mon, 20 Oct 2008 18:47:24 +0000 (18:47 +0000)]
Revert r3072, which was a no-op.
Add "config.h" where it's missing.

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

16 years agoSync with FreeBSD
des [Mon, 20 Oct 2008 18:40:32 +0000 (18:40 +0000)]
Sync with FreeBSD

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

16 years agoStrictly speaking, we should test $target, not $host - although in practice,
des [Mon, 20 Oct 2008 18:33:15 +0000 (18:33 +0000)]
Strictly speaking, we should test $target, not $host - although in practice,
varnish is not cross-buildable anyway due to the SO_RCVTIMEO / SO_SNDTIMEO
tests.

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

16 years agoChange default to always use HTTP/1.1 with the backend
phk [Mon, 20 Oct 2008 18:19:06 +0000 (18:19 +0000)]
Change default to always use HTTP/1.1 with the backend

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

16 years agoAdd a bit more coverage to this test.
phk [Mon, 20 Oct 2008 18:01:48 +0000 (18:01 +0000)]
Add a bit more coverage to this test.

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

16 years agoOOps, wrong directory
phk [Mon, 20 Oct 2008 17:57:28 +0000 (17:57 +0000)]
OOps, wrong directory

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

16 years agoAdd a test-case for dup purge elimination
phk [Mon, 20 Oct 2008 17:45:54 +0000 (17:45 +0000)]
Add a test-case for dup purge elimination

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

16 years agoAdd a boolean parameter "purge_dups", to make it possible to mark earlier
phk [Mon, 20 Oct 2008 15:01:37 +0000 (15:01 +0000)]
Add a boolean parameter "purge_dups", to make it possible to mark earlier
bans of the same regexp as "gone" to save duplicate regexp checking.

Prodded to by: jodok

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

16 years agoNo need to delay for varnishd to update stats, varnishtest does this for us
tfheen [Mon, 20 Oct 2008 09:04:54 +0000 (09:04 +0000)]
No need to delay for varnishd to update stats, varnishtest does this for us

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

16 years agoMerge 2.0.x changes files from branches/2.0
tfheen [Mon, 20 Oct 2008 09:03:53 +0000 (09:03 +0000)]
Merge 2.0.x changes files from branches/2.0

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

16 years agoWhite-space commit from hell.
phk [Sat, 18 Oct 2008 20:50:10 +0000 (20:50 +0000)]
White-space commit from hell.

I need a printout for a code-walkthrough and this commit wraps lines,
removes trailing space, space before TAB and other iregularities.

Some generated files have been compacted a bit.

A few changes to comments along the way.

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

16 years agorpm specfile changes:
ingvar [Fri, 17 Oct 2008 21:53:06 +0000 (21:53 +0000)]
rpm specfile changes:
* Fri Oct 17 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0.1-1
- 2.0.1 released, a bugfix release. New upstream sources
- Package now also available in EPEL

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

16 years agoESI includes can hit the waiting list and since the state is stored
phk [Fri, 17 Oct 2008 21:29:49 +0000 (21:29 +0000)]
ESI includes can hit the waiting list and since the state is stored
on the worker thread stack, we cannot just let another thread pick
up.

This is not as much a fix as a workaround: simply sleep until the
object we wait for is no longer busy.

The issue may have to be revisited in the long run, but for 2.0.x
this will have to do.

Fixes #345

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

16 years agoCheck that regexps are constant strings.
phk [Fri, 17 Oct 2008 18:54:07 +0000 (18:54 +0000)]
Check that regexps are constant strings.

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

16 years agoFix a segfault on certain garbed HTTP request headers.
phk [Fri, 17 Oct 2008 09:03:21 +0000 (09:03 +0000)]
Fix a segfault on certain garbed HTTP request headers.

Fixes: #354

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

16 years agoIncreased the stack size from 16K to 32K for the threads as it caused seg.fault....
petter [Fri, 17 Oct 2008 07:00:02 +0000 (07:00 +0000)]
Increased the stack size from 16K to 32K for the threads as it caused seg.fault. on Linux when writing formated to stderr (stdout worked).

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

16 years ago* Thu Oct 16 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-2
ingvar [Thu, 16 Oct 2008 13:36:47 +0000 (13:36 +0000)]
* Thu Oct 16 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-2
- Readded the debugflag patch. It's so practical
- Added a strange workaround for make check on ppc64

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

16 years agoAllow "true" and "false" as settings for booleans
phk [Thu, 16 Oct 2008 10:32:47 +0000 (10:32 +0000)]
Allow "true" and "false" as settings for booleans

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

16 years agost00pid typo
ingvar [Thu, 16 Oct 2008 08:51:15 +0000 (08:51 +0000)]
st00pid typo

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

16 years agoFix an off-by one error in ACL compilation.
phk [Wed, 15 Oct 2008 21:28:15 +0000 (21:28 +0000)]
Fix an off-by one error in ACL compilation.

Should be merged into 2.0

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

16 years agoAdd HTML version of getting started guide
tfheen [Wed, 15 Oct 2008 18:36:33 +0000 (18:36 +0000)]
Add HTML version of getting started guide

Thanks to cby for fixing this up and HTMLising it.

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

16 years agoAdd missing changelog file
tfheen [Wed, 15 Oct 2008 18:36:29 +0000 (18:36 +0000)]
Add missing changelog file

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

16 years agofinal specfile changes for 2.0
ingvar [Wed, 15 Oct 2008 15:38:09 +0000 (15:38 +0000)]
final specfile changes for 2.0

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

16 years agoChangelog for 2.0
tfheen [Wed, 15 Oct 2008 11:29:25 +0000 (11:29 +0000)]
Changelog for 2.0

Write up changelog for 2.0

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

16 years agoSet svn:keywords for all files
tfheen [Wed, 15 Oct 2008 09:52:15 +0000 (09:52 +0000)]
Set svn:keywords for all files

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

16 years agoAdd note to changelog saying it's no longer updated.
tfheen [Wed, 15 Oct 2008 08:41:38 +0000 (08:41 +0000)]
Add note to changelog saying it's no longer updated.

also, add pointer to doc/ directory.

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

16 years agothe infamous jemalloc on ppc/ppc64 workaround
ingvar [Tue, 14 Oct 2008 23:32:15 +0000 (23:32 +0000)]
the infamous jemalloc on ppc/ppc64 workaround

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

16 years agoA note on jemalloc and ppc for the rpm package
ingvar [Tue, 14 Oct 2008 23:29:49 +0000 (23:29 +0000)]
A note on jemalloc and ppc for the rpm package

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

16 years agoCheckpoint the shmlog before we wait for a reply from the backend.
phk [Tue, 14 Oct 2008 20:28:26 +0000 (20:28 +0000)]
Checkpoint the shmlog before we wait for a reply from the backend.

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

16 years agonitpicking:
phk [Tue, 14 Oct 2008 09:16:33 +0000 (09:16 +0000)]
nitpicking:
Remove two spurious newlines in shmlog messages.
Assert that restarts is zero when we begin.

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

16 years agoExpand the -repeat 6 in the server clause, this seems to make the
phk [Tue, 14 Oct 2008 09:15:50 +0000 (09:15 +0000)]
Expand the -repeat 6 in the server clause, this seems to make the
test work reliably on my machine.

Also set the reponse text to a recognizable text for improved logreading
should it fail again.

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

16 years agoFix up port test
tfheen [Mon, 13 Oct 2008 09:21:06 +0000 (09:21 +0000)]
Fix up port test

It seems like glibc's getaddrinfo is entirely happy to accept 70000 as
a valid port, so use something that's not a valid service name so make
check still works.

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

16 years agoFor ESI responses we can only use Chunked encoding for HTTP/1.1 and
phk [Sat, 11 Oct 2008 11:28:52 +0000 (11:28 +0000)]
For ESI responses we can only use Chunked encoding for HTTP/1.1 and
later.  Use EOF-encoding for sessions where the request is lower
HTTP protocol versions.

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

16 years agoHandle HTTP1.0 style "until EOF" data transmissions for 200 responses.
phk [Sat, 11 Oct 2008 11:27:56 +0000 (11:27 +0000)]
Handle HTTP1.0 style "until EOF" data transmissions for 200 responses.

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

16 years agoDecode the HTTP protocol version into a convenient struct http field.
phk [Sat, 11 Oct 2008 10:42:05 +0000 (10:42 +0000)]
Decode the HTTP protocol version into a convenient struct http field.

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

16 years agoMore coverage of vcc_dir_random.c
phk [Fri, 10 Oct 2008 21:57:34 +0000 (21:57 +0000)]
More coverage of vcc_dir_random.c

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

16 years agoMore VCL compiler coverage tests
phk [Fri, 10 Oct 2008 21:43:02 +0000 (21:43 +0000)]
More VCL compiler coverage tests

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

16 years agoMore tokens to test
phk [Fri, 10 Oct 2008 21:24:52 +0000 (21:24 +0000)]
More tokens to test

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

16 years agoMore VCL compiler coverage tests
phk [Fri, 10 Oct 2008 21:13:32 +0000 (21:13 +0000)]
More VCL compiler coverage tests

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

16 years agoTest the "week" time unit.
phk [Fri, 10 Oct 2008 20:57:51 +0000 (20:57 +0000)]
Test the "week" time unit.

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

16 years agoRemove redundant error checks.
phk [Fri, 10 Oct 2008 20:56:06 +0000 (20:56 +0000)]
Remove redundant error checks.

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

16 years agoInstead of assert, issue a error message on VCL compilation returning
phk [Fri, 10 Oct 2008 20:44:14 +0000 (20:44 +0000)]
Instead of assert, issue a error message on VCL compilation returning
unexpected result codes.

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

16 years agoAnother sign error.
phk [Fri, 10 Oct 2008 20:39:38 +0000 (20:39 +0000)]
Another sign error.

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

16 years agosign error
phk [Fri, 10 Oct 2008 20:08:14 +0000 (20:08 +0000)]
sign error

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

16 years agoMore coverage for vcc_backend.c
phk [Fri, 10 Oct 2008 19:55:12 +0000 (19:55 +0000)]
More coverage for vcc_backend.c

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

16 years agoAdd a couple of test-case for vcc_parse.c
phk [Fri, 10 Oct 2008 19:40:30 +0000 (19:40 +0000)]
Add a couple of test-case for vcc_parse.c

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

16 years agoEliminate "localhost" from backends, some computers have both an
phk [Fri, 10 Oct 2008 13:08:37 +0000 (13:08 +0000)]
Eliminate "localhost" from backends, some computers have both an
IPv4 & IPv6 address in /etc/hosts' localhost entry.

Use "127.0.0.1" intead.

Send me a telegram when IPv6 matters.

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

16 years agodefault to one iteration in varnishtest
tfheen [Fri, 10 Oct 2008 11:00:02 +0000 (11:00 +0000)]
default to one iteration in varnishtest

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

16 years agoAdd "-n iter" argument so that it is possible to run a certain set of
phk [Fri, 10 Oct 2008 10:16:23 +0000 (10:16 +0000)]
Add "-n iter" argument so that it is possible to run a certain set of
tests a given number of times:

varnishtest -n 100 tests/b*.vtc

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

16 years agoAdd 'w' suffix for "week" in time units.
phk [Fri, 10 Oct 2008 08:32:24 +0000 (08:32 +0000)]
Add 'w' suffix for "week" in time units.

Suggested by:  "chen xiaoyong"

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

16 years ago- Added 'varnishd -C' to %check, to check if varnishd generates readable code
ingvar [Thu, 9 Oct 2008 20:31:32 +0000 (20:31 +0000)]
- Added 'varnishd -C' to %check, to check if varnishd generates readable code
- Synced rpm changelog from fedora. There was some strange items that
  had to be sorted

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

16 years agoSpecfile changes scheduled for fedora 10. Now also in trunk.
ingvar [Thu, 9 Oct 2008 12:56:05 +0000 (12:56 +0000)]
Specfile changes scheduled for fedora 10. Now also in trunk.

* Wed Oct 08 2008 Ingvar Hagelund <ingvar@linpro.no> - 2.0-0.11.rc1
- 2.0-rc1 released. New upstream sources
- Added a patch for test a00008, from r3269
- Removed condrestart in postscript at upgrade. We don't want that.

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

16 years agoOverhaul the varnishtest program to fix a race condition which might
phk [Thu, 9 Oct 2008 11:39:24 +0000 (11:39 +0000)]
Overhaul the varnishtest program to fix a race condition which might
(or might not) be the root cause of #346:

The delay function would access the toplevel log element from client/server
contexts with no logging.

Fix by passing the log element to the subcommands.

This race would only affect testcases using delay or sema inside client
or server threads.

Revert test a00008.vtc to use only one sema, using two just moved the
race condition.

This also has the side effect of moving "sema" related messages to
the tread that carries out the "sema" operation.

Various other cleanups now that I had my fingers in the code anyway:
memory leaks plugged, stylistic nits etc.

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

16 years agoFix markup in vcl.7 man page after linting
ssm [Thu, 9 Oct 2008 09:05:20 +0000 (09:05 +0000)]
Fix markup in vcl.7 man page after linting

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

16 years agoAdd a description to varnishadm man page for whatis
ssm [Thu, 9 Oct 2008 09:05:17 +0000 (09:05 +0000)]
Add a description to varnishadm man page for whatis

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

16 years agoUse two differnet semaphores for now.
phk [Wed, 8 Oct 2008 20:45:29 +0000 (20:45 +0000)]
Use two differnet semaphores for now.

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

16 years agoSet release back to trunk
tfheen [Wed, 8 Oct 2008 11:38:46 +0000 (11:38 +0000)]
Set release back to trunk

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

16 years agoRelease 2.0 RC 1
tfheen [Wed, 8 Oct 2008 11:36:34 +0000 (11:36 +0000)]
Release 2.0 RC 1

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

16 years agoError out when reaching max_restarts
tfheen [Tue, 7 Oct 2008 11:08:43 +0000 (11:08 +0000)]
Error out when reaching max_restarts

Partially addresses #280

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

16 years agoCheck that error in vcl_fetch doesn't generate a cached object
tfheen [Tue, 7 Oct 2008 11:00:42 +0000 (11:00 +0000)]
Check that error in vcl_fetch doesn't generate a cached object

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

16 years agoMake sure error works in vcl_fetch
tfheen [Tue, 7 Oct 2008 11:00:38 +0000 (11:00 +0000)]
Make sure error works in vcl_fetch

error was unimplemented in vcl_fetch.  Implement it and add a test
case.

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

16 years agoCheck that error in vcl_fetch doesn't generate a cached object
Tollef Fog Heen [Tue, 7 Oct 2008 10:47:04 +0000 (12:47 +0200)]
Check that error in vcl_fetch doesn't generate a cached object

16 years agoMake sure ESI includes don't trip the director NULL check in vcl_recv.
phk [Tue, 7 Oct 2008 10:57:35 +0000 (10:57 +0000)]
Make sure ESI includes don't trip the director NULL check in vcl_recv.

Fixes #339

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

16 years agoMake sure error works in vcl_fetch
Tollef Fog Heen [Thu, 2 Oct 2008 11:46:42 +0000 (13:46 +0200)]
Make sure error works in vcl_fetch

error was unimplemented in vcl_fetch.  Implement it and add a test
case.