]> err.no Git - varnish/log
varnish
15 years agoMerge r3492: master-2.0
tfheen [Wed, 28 Jan 2009 15:09:40 +0000 (15:09 +0000)]
Merge r3492:

Be more stringent about our timeout: fail even if we did get a
socket, but took to.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3563 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3488:
tfheen [Wed, 28 Jan 2009 14:40:37 +0000 (14:40 +0000)]
Merge r3488:

Assert fcntl(2) have not failed.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3562 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3466:
tfheen [Wed, 28 Jan 2009 14:32:57 +0000 (14:32 +0000)]
Merge r3466:

Add a missing error check.

Fixes #409

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3561 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3463:
tfheen [Wed, 28 Jan 2009 14:21:04 +0000 (14:21 +0000)]
Merge r3463:

Changed rpm summary string as requested by the Fedora project

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3560 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3426:
tfheen [Wed, 28 Jan 2009 14:12:20 +0000 (14:12 +0000)]
Merge r3426:

Fix typo (s/timeout/interval/) in default parameters for backend health

Thanks to Jonny @ globo for noticing.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3559 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3420:
tfheen [Wed, 28 Jan 2009 14:08:32 +0000 (14:08 +0000)]
Merge r3420:

Update license to remove the advertising clause, reflecting similar change
in the FreeBSD original.

Approved by:    des

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3558 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3418:
tfheen [Wed, 28 Jan 2009 14:04:12 +0000 (14:04 +0000)]
Merge r3418:

Fix typo

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3557 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3408:
tfheen [Wed, 28 Jan 2009 13:56:19 +0000 (13:56 +0000)]
Merge r3408:

Check ECONNRESET

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3556 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3407:
tfheen [Wed, 28 Jan 2009 13:50:47 +0000 (13:50 +0000)]
Merge r3407:

Correct defaults in varnishd.1

The defaults for thread_pool_min and thread_pools were wrong; fixed.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3555 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3402:
tfheen [Wed, 28 Jan 2009 12:22:58 +0000 (12:22 +0000)]
Merge r3402:

Document grace

Thanks to perbu for suggested documentation
Fixes 355

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3554 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3401:
tfheen [Wed, 28 Jan 2009 12:18:10 +0000 (12:18 +0000)]
Merge r3401:

Make malloc print max storage size

storage_file prints the maximum storage size, make malloc do the same,
for consistency.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3553 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3388:
tfheen [Wed, 28 Jan 2009 12:13:05 +0000 (12:13 +0000)]
Merge r3388:

Make sure that
        set obj.ttl = 0s
means that the object is not hit again by actually using "-1" instead.

This works around the rounding error which otherwise causes the object
to be inside TTL for up to one second - epsilon.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3552 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3387:
tfheen [Wed, 28 Jan 2009 12:06:57 +0000 (12:06 +0000)]
Merge r3387:

Regression test case for ticket 365: restart in hit.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3551 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3386:
tfheen [Mon, 19 Jan 2009 14:28:07 +0000 (14:28 +0000)]
Merge r3386:

Implement restart in vcl_hit.

Fixes #365

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3536 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3368:
tfheen [Mon, 19 Jan 2009 14:24:03 +0000 (14:24 +0000)]
Merge r3368:

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/branches/2.0@3535 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3367:
tfheen [Mon, 19 Jan 2009 13:45:10 +0000 (13:45 +0000)]
Merge r3367:

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/branches/2.0@3533 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3366:
tfheen [Mon, 19 Jan 2009 13:28:59 +0000 (13:28 +0000)]
Merge r3366:

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/branches/2.0@3532 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3362:
tfheen [Mon, 19 Jan 2009 13:24:13 +0000 (13:24 +0000)]
Merge r3362:

Document the size parameter to -s malloc

Fixes #362

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3531 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3361:
tfheen [Mon, 19 Jan 2009 12:57:25 +0000 (12:57 +0000)]
Merge r3361:

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/branches/2.0@3529 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3433:
tfheen [Mon, 19 Jan 2009 12:52:30 +0000 (12:52 +0000)]
Merge r3433:

When we receive an If-Modified-Since on an ESI object, do not process the
conditional for the child object and pretend to send a 304 reply for them, if
we have decided to deliver the main object.

Fixes #386

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3528 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoUpdate version number in configure.ac
tfheen [Fri, 14 Nov 2008 12:59:02 +0000 (12:59 +0000)]
Update version number in configure.ac

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3397 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge in 2.0.2 spec file change
tfheen [Fri, 14 Nov 2008 12:58:33 +0000 (12:58 +0000)]
Merge in 2.0.2 spec file change

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3396 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3358: Removed the requirement for kernel => 2.6.0
tfheen [Mon, 10 Nov 2008 10:14:19 +0000 (10:14 +0000)]
Merge r3358: Removed the requirement for kernel => 2.6.0

* 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/branches/2.0@3376 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3357: varnishtest man page: whitespace fix
tfheen [Mon, 10 Nov 2008 10:12:56 +0000 (10:12 +0000)]
Merge r3357: varnishtest man page: whitespace fix

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3375 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3356: Add a varnishtest man page
tfheen [Mon, 10 Nov 2008 10:12:28 +0000 (10:12 +0000)]
Merge r3356: Add a varnishtest man page

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3374 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3353, r3354: resp.status was returning obj.status
tfheen [Mon, 10 Nov 2008 10:12:00 +0000 (10:12 +0000)]
Merge r3353, r3354: resp.status was returning obj.status

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3373 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3346: Don't quote the entire inlined C source in the index table, just show C{
tfheen [Mon, 10 Nov 2008 10:10:49 +0000 (10:10 +0000)]
Merge r3346: 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/branches/2.0@3372 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3344: Use a proper format string.
tfheen [Mon, 10 Nov 2008 10:10:09 +0000 (10:10 +0000)]
Merge r3344: Use a proper format string.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3371 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3329, r3330: Add a boolean parameter "purge_dups"
tfheen [Mon, 10 Nov 2008 10:09:31 +0000 (10:09 +0000)]
Merge r3329, r3330: Add a boolean parameter "purge_dups"

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

Add a test-case for dup purge elimination

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3370 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3359: Fix the broken logic in the random directors picking routine.
tfheen [Mon, 10 Nov 2008 10:07:29 +0000 (10:07 +0000)]
Merge r3359: 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/branches/2.0@3369 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3314 from trunk.
tfheen [Mon, 20 Oct 2008 08:58:05 +0000 (08:58 +0000)]
Merge r3314 from trunk.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3326 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3322 from trunk
tfheen [Mon, 20 Oct 2008 08:55:24 +0000 (08:55 +0000)]
Merge r3322 from trunk

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3325 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd closing tag
ssm [Fri, 17 Oct 2008 19:55:11 +0000 (19:55 +0000)]
Add closing tag

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3321 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMark 2.0.1 in configure.ac
tfheen [Fri, 17 Oct 2008 18:57:52 +0000 (18:57 +0000)]
Mark 2.0.1 in configure.ac

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3319 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoAdd changes for 2.0.1
tfheen [Fri, 17 Oct 2008 15:53:34 +0000 (15:53 +0000)]
Add changes for 2.0.1

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3317 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge r3315 from trunk
tfheen [Fri, 17 Oct 2008 11:04:12 +0000 (11:04 +0000)]
Merge r3315 from trunk

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3316 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge 3309 from trunk
tfheen [Thu, 16 Oct 2008 09:09:16 +0000 (09:09 +0000)]
Merge 3309 from trunk

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3311 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoMerge 3308 from trunk
tfheen [Thu, 16 Oct 2008 09:08:57 +0000 (09:08 +0000)]
Merge 3308 from trunk

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3310 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoChange configure.ac for 2.0 release
tfheen [Wed, 15 Oct 2008 18:49:11 +0000 (18:49 +0000)]
Change configure.ac for 2.0 release

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3306 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 years agoBranch 2.0
tfheen [Wed, 15 Oct 2008 18:45:47 +0000 (18:45 +0000)]
Branch 2.0

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/branches/2.0@3305 d4fa192b-c00b-0410-8231-f00ffab90ce4

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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.

15 years agoMerge branch 'accept_emfile_delay'
Tollef Fog Heen [Tue, 7 Oct 2008 09:46:43 +0000 (11:46 +0200)]
Merge branch 'accept_emfile_delay'

15 years agoSleep for a bit if accept(2) returns EMFILE
tfheen [Tue, 7 Oct 2008 09:46:24 +0000 (09:46 +0000)]
Sleep for a bit if accept(2) returns EMFILE

Hopefully, this will mitigate pile-ups somewhat and prevent us from
running out of file descriptors, at least as quickly.

See #330.

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

15 years agoMove dsleep to libvarnish/time.c and rename it to TIM_sleep
tfheen [Tue, 7 Oct 2008 09:46:21 +0000 (09:46 +0000)]
Move dsleep to libvarnish/time.c and rename it to TIM_sleep

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

15 years agoSleep for a bit if accept(2) returns EMFILE
Tollef Fog Heen [Tue, 7 Oct 2008 09:43:49 +0000 (11:43 +0200)]
Sleep for a bit if accept(2) returns EMFILE

Hopefully, this will mitigate pile-ups somewhat and prevent us from
running out of file descriptors, at least as quickly.

See #330.

15 years agoMove dsleep to libvarnish/time.c and rename it to TIM_sleep
Tollef Fog Heen [Mon, 6 Oct 2008 12:33:48 +0000 (14:33 +0200)]
Move dsleep to libvarnish/time.c and rename it to TIM_sleep

15 years agoTest coverage for vcc_token.c
phk [Sun, 5 Oct 2008 22:45:41 +0000 (22:45 +0000)]
Test coverage for vcc_token.c

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

15 years agoFix error handling of unterminated long-strings.
phk [Sun, 5 Oct 2008 22:40:16 +0000 (22:40 +0000)]
Fix error handling of unterminated long-strings.

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

15 years agoFix a truly obscure bug in compiler message error reporting:
phk [Sun, 5 Oct 2008 22:28:13 +0000 (22:28 +0000)]
Fix a truly obscure bug in compiler message error reporting:

If the error references the first token and there is no preceding
newline we would core dump.

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

15 years agoA bit more vcc_action.c coverage
phk [Sun, 5 Oct 2008 22:10:14 +0000 (22:10 +0000)]
A bit more vcc_action.c coverage

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

15 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

15 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

15 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

15 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

15 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

15 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

15 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