]>
err.no Git - varnish/log
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
phk [Mon, 11 Aug 2008 08:21:41 +0000 (08:21 +0000)]
Remove an spurious <err.h> include.
Fix and extend regression tests while here.
Inspired by: solaris patch from Theo Schlossnagle
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3075
d4fa192b -c00b-0410-8231-
f00ffab90ce4
petter [Mon, 11 Aug 2008 08:08:50 +0000 (08:08 +0000)]
Cleaned up some usage statements
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3074
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 11 Aug 2008 08:02:24 +0000 (08:02 +0000)]
Move the C-compiler invocation determination to autoconf.
(Fixed the apple & gnu compiler strings relative to submitted patch)
Submitted by: Theo Schlossnagle
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3073
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 11 Aug 2008 07:47:24 +0000 (07:47 +0000)]
Pull in all the #include <config.h> from the Solaris patch
Submitted by: Theo Schlossnagle
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3072
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 7 Aug 2008 09:56:42 +0000 (09:56 +0000)]
Fix a printf type complaint.
Also fix style.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3071
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 7 Aug 2008 09:42:24 +0000 (09:42 +0000)]
Try to fix Automake spec to also work on FreeBSD.
XXX: Isn't something about removing the temporary files missing ?
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3070
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Thu, 7 Aug 2008 08:56:01 +0000 (08:56 +0000)]
Fix up Makefiles so make distcheck works again (out of tree builds and remove generated files on distclean)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3069
d4fa192b -c00b-0410-8231-
f00ffab90ce4
petter [Wed, 6 Aug 2008 14:29:27 +0000 (14:29 +0000)]
An outline and some text for a "Getting started guide" for Varnish.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3068
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Wed, 6 Aug 2008 12:40:34 +0000 (12:40 +0000)]
Support out-of-tree builds, and make sure to clean up after ourselves. Both aka "make make distcheck work"
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3067
d4fa192b -c00b-0410-8231-
f00ffab90ce4
petter [Wed, 6 Aug 2008 12:16:18 +0000 (12:16 +0000)]
Forgot a depedency to bin/varnishd/default.vcl
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3066
d4fa192b -c00b-0410-8231-
f00ffab90ce4
petter [Wed, 6 Aug 2008 12:10:02 +0000 (12:10 +0000)]
Updated the man page for vcl to include the default bin/varnishd/default.vcl so it is easier kept in sync. Same goes for etc/default.vcl, which now is generated from the same bin/varnishd/default.vcl.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3065
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 5 Aug 2008 11:27:14 +0000 (11:27 +0000)]
Add script to generate the request-processing state diagram cheat-sheet.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3064
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 5 Aug 2008 09:38:28 +0000 (09:38 +0000)]
Add an .eps version
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3063
d4fa192b -c00b-0410-8231-
f00ffab90ce4
petter [Tue, 5 Aug 2008 07:59:11 +0000 (07:59 +0000)]
Fixed makefile depedency. default_vcl.h is now generated as a depdency of mgt_vcc.c
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3062
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 4 Aug 2008 20:13:30 +0000 (20:13 +0000)]
Move the default VCL code into its own text file.
Generate "default_vcl.h" from this using sed(1) in the Makefile.
Include default_vcl.h in mgt_vcc.c
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3061
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 12:44:53 +0000 (12:44 +0000)]
The compiler should not care about field order in director decls.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3060
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 11:24:48 +0000 (11:24 +0000)]
Use WRONG instead of INCOMPL
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3059
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 11:07:58 +0000 (11:07 +0000)]
Make explicit what is missing and what is asserts in the state-engine.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3058
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 10:50:36 +0000 (10:50 +0000)]
Add WRONG(expl) macro for panicing from places we just shouldn't get to.
Dump the handling value from the last VCL method on panic
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3057
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 10:06:56 +0000 (10:06 +0000)]
Longer delay for panic to complete.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3056
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 09:50:28 +0000 (09:50 +0000)]
Actually wait for the varnish child to stop in "varnish -stop".
Update test-case
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3055
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 09:24:08 +0000 (09:24 +0000)]
Report back to CLI if we cannot start the child due to non-bindable sockets
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3054
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 09:22:21 +0000 (09:22 +0000)]
Be much more explicit about localhost.
Force varnish instance into /tmp/__${name}
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3053
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 08:24:23 +0000 (08:24 +0000)]
Go over the b* series of tests:
add expectes for stats counters where necessary
generally polish.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3052
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 08:23:30 +0000 (08:23 +0000)]
Add
-cliok <cli_cmd>
and
-clierr <expected_status> <cli_cmd>
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3051
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 08:22:40 +0000 (08:22 +0000)]
note when the fd gets closed
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3050
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 1 Aug 2008 07:46:43 +0000 (07:46 +0000)]
Fix pass statistics counter
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3049
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 22:38:01 +0000 (22:38 +0000)]
Rename the vcl_fetch{} action "insert" to "deliver" as we may not
insert (for instance on pass) but we certainly will deliver (unless
error or restart actions are used instead).
Update the dotgraph to 2.0 intent
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3048
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 14:59:58 +0000 (14:59 +0000)]
That test rightfully is a v* test
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3047
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 14:59:06 +0000 (14:59 +0000)]
Add a test-case for VCL purging
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3046
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 12:53:40 +0000 (12:53 +0000)]
Explanation
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3045
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 12:50:36 +0000 (12:50 +0000)]
Complete the separation of synthetic from received objects.
Any object, also errors, we receive from the backend will
go to vcl_fetch(), and can be cached if desired.
Any object we create, for instance if we cannot contact the
backend, will go to vcl_error() and will not be cached.
Technical details:
Implement VCL variable setting for booleans like obj.cacheable.
Remove obj.valid, only valid objects go to vcl_fetch now.
On fetch failure, drop the object and go to STP_ERROR with 503
Update testcase b00015.vtc accordingly.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3044
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 10:35:35 +0000 (10:35 +0000)]
Ok, 3 retries then...
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3043
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 10:24:19 +0000 (10:24 +0000)]
Retry client connects once.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3042
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Thu, 31 Jul 2008 10:19:44 +0000 (10:19 +0000)]
Add uptime to varnishstat -1 output
Make varnishstat -1 also output the uptime.
Closes #68
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3041
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 10:03:27 +0000 (10:03 +0000)]
An assert to convince FlexeLint that we have a variable.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3040
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 10:01:36 +0000 (10:01 +0000)]
Don't write to read-only structure members in the shared object
definition structure.
Fixes ticket 285
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3039
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 09:52:27 +0000 (09:52 +0000)]
Accept ECONNRESET when closing sockets during cleanup.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3038
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 09:25:25 +0000 (09:25 +0000)]
Make separate stats counters for number of object checked against purges
and number of regexps checked.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3037
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 09:24:25 +0000 (09:24 +0000)]
Flexelint silencing
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3036
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 09:23:28 +0000 (09:23 +0000)]
Check that we found a variable before using it.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3035
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 09:22:46 +0000 (09:22 +0000)]
We don't actually use miniobj.h, we do the same thing internally.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3034
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 31 Jul 2008 09:09:20 +0000 (09:09 +0000)]
FlexeLint polishing.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3033
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 30 Jul 2008 15:34:38 +0000 (15:34 +0000)]
Add statistics about regexp purges.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3032
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Wed, 30 Jul 2008 12:18:57 +0000 (12:18 +0000)]
Try to connect to CLI 30 times rather than 10 to avoid some timeout errors.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3031
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Wed, 30 Jul 2008 10:53:38 +0000 (10:53 +0000)]
Add cache_backend.h to the list of headers that go in the tarball; fixes build failure
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3030
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Sun, 27 Jul 2008 14:36:03 +0000 (14:36 +0000)]
Forgot to add this file.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3029
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 25 Jul 2008 19:23:35 +0000 (19:23 +0000)]
Change param thread_pool_min to be the minimum number of threads per
pool, and don't be so stingy with them: default to five.
Make sure we really do create the minimum complement of threads.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3028
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 25 Jul 2008 18:20:35 +0000 (18:20 +0000)]
NB: Be careful with -trunk, this is a quite intrusive change.
Continue the progress on synthetic/error pages
The default "guru meditation" is now generated from the vcl_error {}
function, which can be redefined to whatever suits your taste.
Techinical:
Add new vcl_error method and make variables available in it.
Fix a bug in "error" action, where the numeric argument would not get
interpreted correctly if it came from a variable like obj.status.
Forbid "error" action in vcl_deliver since vcl_error now goes to
vcl_deliver to send the error object.
Fix test v00001 to reflect this.
Move the obj->ws/http initialization to preallocation time to avoid
duplication.
Add read-only variable req.xid (a string!)
Add default guru meditation to default vcl.
Remove cache_synthetic.c which is now unecessary.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3027
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 25 Jul 2008 16:33:04 +0000 (16:33 +0000)]
Add a facility to constructing a synthetic object from VCL.
This is just the initial version and it doesn't quite work the way
we need it to yet, but the idea is to be able to say:
sub vcl_fetch {
if (obj.status == 503) {
synthetic {"
<HTML>
<H1>Sorry, could not contact the backend server</H1>
<P>
Try again later.
</P>
<HR>
<PRE>
URL: "} req.url {"
User Agnet: "} req.http.user-agent {"
</PRE>
</HTML>
"};
}
}
A new VCL syntactic element have been introduced to do this: "the
long string". A long string is anything from {" to "}, newlines,
controlcharacters and all. (Normal "..." strings cannot contain
control characters.
Technical details:
Don't NULL terminate string sequences in VRT context, we may have
NULL cropping up as a legal value if a header is missing, add the
magic "vrt_magic_string_end" for terminating string contactenation.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3026
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 25 Jul 2008 15:27:04 +0000 (15:27 +0000)]
Add a stevedore for synthetic pages.
The storage from this stevedore is backed by an autoextending vsb, which
can be used to generate synthetic pages into.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3025
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 25 Jul 2008 14:53:08 +0000 (14:53 +0000)]
Give VSB's the mini-obj/magic treatment and enable asserts in general.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3024
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 25 Jul 2008 14:52:08 +0000 (14:52 +0000)]
Neuter test b00015 so that automatic scripts don't trip on it all
the time.
To be reenabled when the code supports the desired functionality.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3023
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 25 Jul 2008 13:39:01 +0000 (13:39 +0000)]
polish dot graph a bit.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3022
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 25 Jul 2008 12:02:11 +0000 (12:02 +0000)]
Figure out if we need O_LARGEFILE to be compatible with 1990 or later
size disks.
Submitted by: wichert
Fixes ticket 283
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3021
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 24 Jul 2008 22:20:10 +0000 (22:20 +0000)]
Relax an assert to only check what we really care about, and not the
principle of the situation.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3020
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 24 Jul 2008 22:12:41 +0000 (22:12 +0000)]
Don my peril sensitive sun-glasses, and go over the TTL calculation
routine.
Follow RFC2616 more closely, and make relative (ie: max-age) specifications
take precedence over absolute specifications (Expires:)
Add an explicit clock-skew window (parameter: clock_skew) and only
interpret Expires: in absolute terms if the Date: header is inside
this window.
Explicit check for the case where the backend sends an Expires: which
is before the Date:, even if the Date: is out side our window.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3019
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 24 Jul 2008 22:09:25 +0000 (22:09 +0000)]
Make the ESI testcases start with an XML tag to satsify our new
non-XML detector logic.
Add a testcase to see if it works and that we can override it.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3018
d4fa192b -c00b-0410-8231-
f00ffab90ce4