]> err.no Git - varnish/log
varnish
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

16 years agoIf you attach gdb to a running varnish child, then when you tell it to continue it...
sky [Tue, 2 Sep 2008 17:54:33 +0000 (17:54 +0000)]
If you attach gdb to a running varnish child, then when you tell it to continue it will abort if assertions are enabled due to poll returning with EINTR.

This just re-enters the loop.

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

16 years agogit-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3154 d4fa192b-c00b-0410...
ingvar [Tue, 2 Sep 2008 14:01:39 +0000 (14:01 +0000)]
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3154 d4fa192b-c00b-0410-8231-f00ffab90ce4

16 years agovcl changes from 1.x to 2.0 documented for Red Hat
ingvar [Tue, 2 Sep 2008 13:59:13 +0000 (13:59 +0000)]
vcl changes from 1.x to 2.0 documented for Red Hat

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

16 years agogit-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3152 d4fa192b-c00b-0410...
ingvar [Tue, 2 Sep 2008 12:54:31 +0000 (12:54 +0000)]
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3152 d4fa192b-c00b-0410-8231-f00ffab90ce4

16 years ago(Commented) option for corefile limit for redhat/fedora sysconfig
ingvar [Tue, 2 Sep 2008 12:47:49 +0000 (12:47 +0000)]
(Commented) option for corefile limit for redhat/fedora sysconfig

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

16 years agoRed Hat init scripts: Fix previous fix. Makes rpmlint happy.
ingvar [Fri, 29 Aug 2008 21:38:01 +0000 (21:38 +0000)]
Red Hat init scripts: Fix previous fix. Makes rpmlint happy.

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

16 years agoRed Hat initscript: Removed a superfluous lockfile definiton
ingvar [Fri, 29 Aug 2008 20:49:47 +0000 (20:49 +0000)]
Red Hat initscript: Removed a superfluous lockfile definiton

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

16 years agospecfile changes
ingvar [Fri, 29 Aug 2008 20:44:00 +0000 (20:44 +0000)]
specfile changes
- Added the LICENSE file to the libs-devel package
- Moved make check to its proper place

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

16 years agoMake setup quiet in specfile => one less warning from rpmlint
ingvar [Fri, 29 Aug 2008 20:25:37 +0000 (20:25 +0000)]
Make setup quiet in specfile => one less warning from rpmlint

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

16 years agoAdded a missing directory to the libs-devel package (Michael Schwendt)
ingvar [Fri, 29 Aug 2008 12:41:27 +0000 (12:41 +0000)]
Added a missing directory to the libs-devel package (Michael Schwendt)

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

16 years agoMake it possible to get core dumps on Linux too
tfheen [Fri, 29 Aug 2008 12:35:00 +0000 (12:35 +0000)]
Make it possible to get core dumps on Linux too

When starting as root and then setuid-ing, we need to set the dumpable
bit to get core dumps on Linux.  Do so.

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

16 years agoBumped version numbers and source url for first beta release
ingvar [Fri, 29 Aug 2008 11:52:26 +0000 (11:52 +0000)]
Bumped version numbers and source url for first beta release

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

16 years agoSet release back to trunk in configure.ac
tfheen [Fri, 29 Aug 2008 10:55:14 +0000 (10:55 +0000)]
Set release back to trunk in configure.ac

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

16 years agoRelease 2.0-beta1
tfheen [Fri, 29 Aug 2008 10:54:30 +0000 (10:54 +0000)]
Release 2.0-beta1

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

16 years agoBump SONAME
tfheen [Fri, 29 Aug 2008 09:37:19 +0000 (09:37 +0000)]
Bump SONAME

We're not binary compatible, so bump soname.  Closes: #293

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

16 years agoAdd _.ok to the list of files we clean on make distclean
tfheen [Thu, 28 Aug 2008 11:03:23 +0000 (11:03 +0000)]
Add _.ok to the list of files we clean on make distclean

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

16 years agoMake it possible to configure the number of retries the random director
phk [Thu, 28 Aug 2008 09:11:41 +0000 (09:11 +0000)]
Make it possible to configure the number of retries the random director
will make at getting a backend connection.  By default it tries as many
times as it has members.

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

16 years agoAdd runtime check that parsing of timestamps actually work.
phk [Wed, 27 Aug 2008 14:22:03 +0000 (14:22 +0000)]
Add runtime check that parsing of timestamps actually work.

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

16 years agoFixed up init script for varnishlog
ingvar [Wed, 27 Aug 2008 07:13:26 +0000 (07:13 +0000)]
Fixed up init script for varnishlog

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

16 years agoVarnish 2.0 bonus feature #1: backend->max_connections
phk [Tue, 26 Aug 2008 19:59:23 +0000 (19:59 +0000)]
Varnish 2.0 bonus feature #1:  backend->max_connections

        backend default {
                .host = "127.0.0.1";
                .port = "9080";
                .max_connections = 100;
        }

will limit the simultaneous TCP connections to this backend to 100.

Stats counter backend_busy == "Backend connections too many" tells
how often we have hit this limit for a backend.

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

16 years agoMake the random and round-robin directors avoid backends which are
phk [Tue, 26 Aug 2008 19:26:46 +0000 (19:26 +0000)]
Make the random and round-robin directors avoid backends which are
polled as unhealty.

This technically makes Varnish 2.0 "feature complete", but some further
polishing is to be expected.

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

16 years agomake check now runs without races
ingvar [Tue, 26 Aug 2008 13:09:27 +0000 (13:09 +0000)]
make check now runs without races

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

16 years agoTada!
phk [Tue, 26 Aug 2008 09:47:49 +0000 (09:47 +0000)]
Tada!

First step in activating backend polling:  Do not attempt to open
connections to a unhealthy backend.

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

16 years agoMark all nonprobed backends healty
phk [Tue, 26 Aug 2008 09:32:24 +0000 (09:32 +0000)]
Mark all nonprobed backends healty

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

16 years agoFixed an error in the argument passing from the init script. Added some more info...
ingvar [Tue, 26 Aug 2008 09:23:29 +0000 (09:23 +0000)]
Fixed an error in the argument passing from the init script. Added some more info text to the stop action.

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

16 years agoGive sessions a backend connection instead of a backend and
phk [Tue, 26 Aug 2008 09:17:32 +0000 (09:17 +0000)]
Give sessions a backend connection instead of a backend and
have the directors provide that.

Entirely a no-op, apart from a bugfix that just would screw
you even more (than "totally") if socket(2) should ever fail.

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

16 years agoCorrectly quote backend data in default vcl example.
phk [Tue, 26 Aug 2008 08:06:27 +0000 (08:06 +0000)]
Correctly quote backend data in default vcl example.

Submitted by: ingvar
Fixes: #298

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

16 years agoUse TCP_close() to properly ignore the "canonical" TCP legal errno values
phk [Tue, 26 Aug 2008 07:51:12 +0000 (07:51 +0000)]
Use TCP_close() to properly ignore the "canonical" TCP legal errno values
consistently.

Fixes #297

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

16 years agoMove the tcp.c file to libvarnish, we need the primitives in varnishtest
phk [Tue, 26 Aug 2008 07:47:23 +0000 (07:47 +0000)]
Move the tcp.c file to libvarnish, we need the primitives in varnishtest
also.

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

16 years agoAdded a missing changelog item from Fedora
ingvar [Mon, 25 Aug 2008 23:09:57 +0000 (23:09 +0000)]
Added a missing changelog item from Fedora

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

16 years agoFixing up init script according to newer Fedora standards
ingvar [Mon, 25 Aug 2008 23:02:47 +0000 (23:02 +0000)]
Fixing up init script according to newer Fedora standards

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

16 years agocorrect pidfile option to daemon and killproc functions
ingvar [Mon, 25 Aug 2008 23:01:54 +0000 (23:01 +0000)]
correct pidfile option to daemon and killproc functions

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

16 years agoPatched up Red Hat init script to comply with newer Fedora standards
ingvar [Mon, 25 Aug 2008 21:56:11 +0000 (21:56 +0000)]
Patched up Red Hat init script to comply with newer Fedora standards

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

16 years agoA typo, and newline at the end
ingvar [Mon, 25 Aug 2008 21:53:34 +0000 (21:53 +0000)]
A typo, and newline at the end

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

16 years agoGive the directors another method which returns not the backend to
phk [Thu, 21 Aug 2008 09:04:24 +0000 (09:04 +0000)]
Give the directors another method which returns not the backend to
connect to, but a connection to a backend, this makes it possible
for the directors to choose another backend, if connection to the
first backend fails.

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

16 years agoMake the director opaque outside the backend code.
phk [Thu, 21 Aug 2008 08:48:29 +0000 (08:48 +0000)]
Make the director opaque outside the backend code.

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

16 years agoMove selection of backend and creation of default Host: header until
phk [Thu, 21 Aug 2008 08:37:37 +0000 (08:37 +0000)]
Move selection of backend and creation of default Host: header until
we actually need to get a filedescriptor to the backend.

This also makes it evident for vcl_pass{}, vcl_pipe{} and vcl_miss{}
if the client sent a Host: header or not.  Previously these functions
saw the default Host: header.

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

16 years agoPolish
phk [Thu, 21 Aug 2008 08:14:40 +0000 (08:14 +0000)]
Polish

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

16 years agoUse invalid address in binding test
tfheen [Wed, 20 Aug 2008 09:58:11 +0000 (09:58 +0000)]
Use invalid address in binding test

IANA has reserved the 198.18.0.0/24 network for Network Interconnect Device
Benchmark Testing which vaguely fits what we are doing.  Use that
instead of 127.0.0.2 since the latter works fine to bind to on Linux
(at least).

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

16 years agoBe explicit about connecting to :9080
tfheen [Wed, 20 Aug 2008 08:58:20 +0000 (08:58 +0000)]
Be explicit about connecting to :9080

When testing synthetic error page caching, make sure we connect to
:9080 rather than the default :80 since the machine might well have an
httpd running already.

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

16 years agoMake make check run test suite
tfheen [Wed, 20 Aug 2008 08:21:05 +0000 (08:21 +0000)]
Make make check run test suite

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

16 years agoIntegrate Solaris patches, with a bit of polishing.
phk [Tue, 19 Aug 2008 21:34:16 +0000 (21:34 +0000)]
Integrate Solaris patches, with a bit of polishing.

Don't look for umem on FreeBSD, which have dummy stub version for
dtrace or ZFS compatibility.

Generally restrict probes for Solaris specific stuff to when we
run on solaris, no need to make configure slower than it is.

Don't pretend we can get anywhere without poll(2) we use it for
lots of things:  Remove #if conditionals around poll-acceptor.

Sort a couple of lists, before they get too unsorted.

Submitted by: Theo Schlossnagle

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

16 years agoAdd a test-case that exercises the backend-polling a bit. It does not
phk [Tue, 19 Aug 2008 20:48:52 +0000 (20:48 +0000)]
Add a test-case that exercises the backend-polling a bit.  It does not
really check anything yet, because we lack the stats counters to test.

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

16 years agoDon't call a zero byte response a "Good Recv".
phk [Tue, 19 Aug 2008 20:47:44 +0000 (20:47 +0000)]
Don't call a zero byte response a "Good Recv".

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

16 years agoFix ticket 292: Make sure the "deleted by Connection:" flag sticks
phk [Tue, 19 Aug 2008 19:34:53 +0000 (19:34 +0000)]
Fix ticket 292:  Make sure the "deleted by Connection:" flag sticks
with its header around.

Found and nailed by: Adrian Otto <aotto@mosso.com>

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

16 years agoAdd a regression test for ticket 292
phk [Tue, 19 Aug 2008 19:33:39 +0000 (19:33 +0000)]
Add a regression test for ticket 292

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

16 years agoSilence FlexeLint
phk [Tue, 19 Aug 2008 09:38:46 +0000 (09:38 +0000)]
Silence FlexeLint

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

16 years agoMake error strings static
phk [Tue, 19 Aug 2008 09:35:28 +0000 (09:35 +0000)]
Make error strings static

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

16 years agoDon't attempt to update the Health information based on how regular
phk [Tue, 19 Aug 2008 09:34:44 +0000 (09:34 +0000)]
Don't attempt to update the Health information based on how regular
traffic fares.  Problems seen there could be caused by all sorts
of special circumstances (bad PHP, weird headers from client etc)
and is not indicative of the backends health.

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

16 years agoCheck that the HTTP response is 200 before we declare the probe happy.
phk [Tue, 19 Aug 2008 08:16:36 +0000 (08:16 +0000)]
Check that the HTTP response is 200 before we declare the probe happy.

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

16 years agoAdd -u for unbuffered output.
phk [Tue, 19 Aug 2008 07:50:50 +0000 (07:50 +0000)]
Add -u for unbuffered output.

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

16 years agoAdd exponential average of responsetime to output
phk [Tue, 19 Aug 2008 07:46:40 +0000 (07:46 +0000)]
Add exponential average of responsetime to output

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

16 years agoUse the default (or specified) Host: header for the backend in the
phk [Tue, 19 Aug 2008 07:19:50 +0000 (07:19 +0000)]
Use the default (or specified) Host: header for the backend in the
probe requests.

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

16 years agoStarted the upgrade race for 2.0
ingvar [Mon, 18 Aug 2008 14:40:51 +0000 (14:40 +0000)]
Started the upgrade race for 2.0

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

16 years agoUpdate the backend->healty state based on the window/threshold
phk [Mon, 18 Aug 2008 09:10:11 +0000 (09:10 +0000)]
Update the backend->healty state based on the window/threshold
paramters.

Log each polls result in the SHMlog

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

16 years agoMake up my mind: defaults go in varnishd
phk [Mon, 18 Aug 2008 08:25:48 +0000 (08:25 +0000)]
Make up my mind: defaults go in varnishd

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

16 years agoImplement parsing of .window and .threshold in backend polling specifications.
phk [Mon, 18 Aug 2008 08:18:43 +0000 (08:18 +0000)]
Implement parsing of .window and .threshold in backend polling specifications.

.window is how many of the latest polls we examine.
.threshold is how many must have succeeded for the backend to be healthy.

.window = 40;
.threshold = 30;
// Thirty of the last fourty polls must have succeed.

.threshold = 4;
// The last four polls must have succeeded.

Default values:
.window = 8;
.threshold = 3;

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

16 years agoWhen an -expect fails in varnishtest, loop for up to a second since stats sometimes...
tfheen [Mon, 18 Aug 2008 08:00:21 +0000 (08:00 +0000)]
When an -expect fails in varnishtest, loop for up to a second since stats sometimes takes a little while to update

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

16 years agoDon't use a thread from the pool, backend polling is far too long-lived for
phk [Mon, 18 Aug 2008 07:46:23 +0000 (07:46 +0000)]
Don't use a thread from the pool, backend polling is far too long-lived for
that to make sense.

We do not need a mutex for our list, all manipulation is from CLI thread.

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

16 years agoAccept EINTR from waitpid()
phk [Fri, 15 Aug 2008 08:30:49 +0000 (08:30 +0000)]
Accept EINTR from waitpid()

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

16 years agoChanges in the specfile:
ingvar [Thu, 14 Aug 2008 20:10:29 +0000 (20:10 +0000)]
Changes in the specfile:
- default.vcl has moved
- Added groff to build requirements

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

16 years agoBe more careful about concurrency.
phk [Thu, 14 Aug 2008 14:47:37 +0000 (14:47 +0000)]
Be more careful about concurrency.

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

16 years agoInstall default.vcl to ${sysconfdir}/varnish, not ${datadir}
tfheen [Thu, 14 Aug 2008 06:32:15 +0000 (06:32 +0000)]
Install default.vcl to ${sysconfdir}/varnish, not ${datadir}

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

16 years agoRemove If-Modified-Since headers on included objects to get consistent
phk [Wed, 13 Aug 2008 06:54:14 +0000 (06:54 +0000)]
Remove If-Modified-Since headers on included objects to get consistent
behaviour.

Submitted by:  sky (ticket 267)

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

16 years agoFix build failure when srcdir != builddir
tfheen [Wed, 13 Aug 2008 06:14:25 +0000 (06:14 +0000)]
Fix build failure when srcdir != builddir

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

16 years agoFix build failure, cache_backend_poll.h was not in the distributed tarball
tfheen [Wed, 13 Aug 2008 06:14:23 +0000 (06:14 +0000)]
Fix build failure, cache_backend_poll.h was not in the distributed tarball

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

16 years agoStop hiding command invocations when building docs
tfheen [Wed, 13 Aug 2008 06:14:21 +0000 (06:14 +0000)]
Stop hiding command invocations when building docs

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

16 years agoAdded some more output suppression
petter [Tue, 12 Aug 2008 13:49:13 +0000 (13:49 +0000)]
Added some more output suppression

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

16 years agoNew file with the bitmap definitons for for backend polling.
phk [Tue, 12 Aug 2008 13:39:27 +0000 (13:39 +0000)]
New file with the bitmap definitons for for backend polling.

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

16 years agoAdded suppresion of output when generating the default.vcl. Fixes #287
petter [Tue, 12 Aug 2008 13:01:41 +0000 (13:01 +0000)]
Added suppresion of output when generating the default.vcl. Fixes #287

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

16 years agoSnapshot the backend polling code without the advanced math.
phk [Tue, 12 Aug 2008 12:57:00 +0000 (12:57 +0000)]
Snapshot the backend polling code without the advanced math.

Presently we only record th state of the last 64 tries to poll the
backend in a shift register, which can be show with the interrim
CLI command "debug.health":

Health stats for backend b0
Oldest __________________________________________________ Newest
4444444444444444444444444444444444444444444444444444444444444444 Good IPv4
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Good Xmit
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS Good Shut
RR-RR-R-RRRR---RR-RR-R-R-R-R-R-RRRR-RR-----RR--RRRR--RRR-R-----R Good Recv

More to follow.

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

16 years agoMake a central TCP_close() function that accepts the two errno's which
phk [Tue, 12 Aug 2008 12:28:38 +0000 (12:28 +0000)]
Make a central TCP_close() function that accepts the two errno's which
indicate that our partner gave up on us.

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

16 years agonits
phk [Tue, 12 Aug 2008 10:29:22 +0000 (10:29 +0000)]
nits

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

16 years agoMake the compile shared object be named $mumble.so to cater for
phk [Mon, 11 Aug 2008 15:08:38 +0000 (15:08 +0000)]
Make the compile shared object be named $mumble.so to cater for
Solaris tool-chains.

Simplified slightly from submitted patch.

Submitted by: Theo Schlossnagle

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

16 years agoIt now always flushes the stream, even for stdout. See ticket #182.
petter [Mon, 11 Aug 2008 10:04:00 +0000 (10:04 +0000)]
It now always flushes the stream, even for stdout. See ticket #182.

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

16 years agoMore whitespace changes
tfheen [Mon, 11 Aug 2008 09:49:41 +0000 (09:49 +0000)]
More whitespace changes

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

16 years agoFix up style
tfheen [Mon, 11 Aug 2008 09:41:51 +0000 (09:41 +0000)]
Fix up style

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

16 years agoBe much more explicit about the string->time conversion disaster
phk [Mon, 11 Aug 2008 09:15:27 +0000 (09:15 +0000)]
Be much more explicit about the string->time conversion disaster
visited upon us by the brilliant minds behind POSIX.

Parts from: Solaris patch from Theo Schlossnagle

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

16 years agoEliminate <err.h> usage.
phk [Mon, 11 Aug 2008 08:31:08 +0000 (08:31 +0000)]
Eliminate <err.h> usage.

Inspired by: Solaris patch from Theo Schlossnagle

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