]>
err.no Git - varnish/log
phk [Fri, 11 Jul 2008 22:07:10 +0000 (22:07 +0000)]
Test that "Connection:" header deletes http headers in both directions.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2941
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 11 Jul 2008 21:34:17 +0000 (21:34 +0000)]
Retire mgt_event.[ch] and use instead the (new) copy of it in libvarnish.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2940
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 11 Jul 2008 21:33:26 +0000 (21:33 +0000)]
Copy mgt_event.[ch] from varnishd into libvarnish and give it the
prefix "VEV".
This is a general purpose eventmanager and as such should live in
the library where other programs can get at it.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2939
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 11 Jul 2008 21:02:05 +0000 (21:02 +0000)]
Add a backend property ".host_header" to set default content of Host:
header if client didn't provide one.
If .host_header is not specified, it defaults to .host.
Add testcase for this logic.
(Incidental change: Use "interval" instead of "rate" for backend pollers.)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2938
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 11 Jul 2008 20:41:39 +0000 (20:41 +0000)]
Add scaffold code for backend polling.
It doesn't actually do anything yet.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2937
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 11 Jul 2008 19:49:20 +0000 (19:49 +0000)]
Drop pseudo-automatic support for multihomed backends and require
clear expression of intent in VCL.
We now fail backend hostnames that resolve to multiple IPv4 or multiple
IPv6 addresses, in other words, you cannot use "cnn.com" as a backend
hostname specification without the compiler yelling at you:
% ./varnishd -d -d -b cnn.com -a :8080
Backend host "cnn.com": resolves to multiple IPv4 addresses.
Only one address is allowed.
Please specify which exact address you want to use, we found these:
64.236.16.20
64.236.16.52
64.236.24.12
64.236.29.120
[...]
VCL compilation failed
However, you _can_ use a hostname that resolves to both an IPv4 and
an IPv6 address, and the new paramter "prefer_ipv6" will determine
which one we try first in such cases.
The other part of this change is that we now do the DNS lookup at
VCL compiletime, and only then.
If your backend's DNS record (or /etc/hosts entry) changes IP#, you
must reload your VCL code to notify varnish.
Finer technical points:
We build a bytestring representation of the sockaddr's in VCC and
include them in the concept of backend identity, for an existing
backend (+ connections) to be reused for a new VCL the backend must
now be defined exactly the same way AND have the same resolved
IPv4/IPv6 addresses.
Since we never muck about with the address in the backend struct
anymore, it's static for the life of the struct backend instance,
we can simplify and eliminate the locking dance around our connection
attempts.
Also eliminate the struct vrt_backend inclusion in struct backend,
and instead make the relevat fields full-blown members of struct
backend. This eliminates a number of TRUST_ME() calls.
This is the companion commit to #2934 which prepared the VCL compiler.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2936
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 11 Jul 2008 18:57:13 +0000 (18:57 +0000)]
Emit backend probe data to ->fb.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2935
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 11 Jul 2008 10:12:52 +0000 (10:12 +0000)]
Reject backend hostnames that resolve to multiple IPv4 or multiple
IPv6 addresses, but accept one of each.
Emit a bytestring representation of the sockaddr we found for each
of these, into the shared object, so we avoid doing a DNS lookup
again in the cacher.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2934
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 21:55:48 +0000 (21:55 +0000)]
Make the vcl.list use the same layout in stopped mode as in started mode.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2933
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 21:51:19 +0000 (21:51 +0000)]
Check counters to make sure the right thing happens.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2932
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 21:43:44 +0000 (21:43 +0000)]
One more.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2931
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 21:34:44 +0000 (21:34 +0000)]
Add more trouble
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2930
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 21:24:07 +0000 (21:24 +0000)]
More XML/ESI testcases
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2929
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 21:23:52 +0000 (21:23 +0000)]
Yet another XML/ESI parse corner case:
<esi:include foo=bar src=/body2 />
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2928
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 21:11:30 +0000 (21:11 +0000)]
More XML/ESI syntax checks
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2927
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 21:11:11 +0000 (21:11 +0000)]
Tackle another XML/ESI syntax error corner-case:
<esi:include src= />
would result in a NUL byte when looking for the next attribute.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2926
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 20:50:04 +0000 (20:50 +0000)]
Trigger a couple more XML/ESI parser errors
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2925
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 20:49:45 +0000 (20:49 +0000)]
Fix two bugs in esi parsing:
Ignore unknown include attributes and
Warn about src attributes without value
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2924
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 20:25:40 +0000 (20:25 +0000)]
More XML/ESI errors
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2923
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 20:08:57 +0000 (20:08 +0000)]
Test XML/ESI syntax errors etc.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2922
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 19:59:56 +0000 (19:59 +0000)]
Test the vcl.load CLI command while we are at it.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2921
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 19:40:17 +0000 (19:40 +0000)]
Add a test for the -f argument
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2920
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 18:09:42 +0000 (18:09 +0000)]
Fix an off-by one in the random director
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2919
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 18:08:42 +0000 (18:08 +0000)]
Add a testcase for the random director doing actual work
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2918
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 11:17:22 +0000 (11:17 +0000)]
Add a testcase to show that we can in fact get rid of both VCL's and
backend hosts.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2917
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 10:27:43 +0000 (10:27 +0000)]
Add a testcase for the sema operations
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2916
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 10:26:17 +0000 (10:26 +0000)]
Add Semaphore facility to synchronize different treads in the tester
with each other.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2915
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 09:34:47 +0000 (09:34 +0000)]
The emminently sensible INFTIM isn't portable, use -1
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2914
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 08:09:15 +0000 (08:09 +0000)]
Add stats counters for tracking the number of vcls loaded.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2913
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 08:00:33 +0000 (08:00 +0000)]
Make it possible to check stats counter values for a varnish instance
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2912
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 07:32:07 +0000 (07:32 +0000)]
Open the shm statistics when we launch a varnish
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2911
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 10 Jul 2008 07:27:56 +0000 (07:27 +0000)]
Remove global "stats", stats are per varnish instance.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2910
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 Jul 2008 09:06:57 +0000 (09:06 +0000)]
Change the layout of the "vcl.list" to explicitly say "active",
"available" or "discarded".
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2909
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 Jul 2008 08:56:46 +0000 (08:56 +0000)]
The cachers CLI thread is responsible for garbage collecting dicarded
VCL programs, but in practice it didn't happen because we fired the
GC function VCL_Idle() after 5 seconds of silence on the CLI port and
the manager pings every three (by default).
Instead change the name of VCL_Idle() to VCL_Poll() and call it
before every CLI command, so that any query command will get an
up to date status.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2908
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Wed, 9 Jul 2008 08:14:25 +0000 (08:14 +0000)]
Allow modification of the receive timeout
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2907
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 8 Jul 2008 10:29:07 +0000 (10:29 +0000)]
Set svn:keywords to Id
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2906
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 8 Jul 2008 10:09:03 +0000 (10:09 +0000)]
Split the backend code into two files, the probe code will make it
more complicated than a single file can carry.
cache_backend_cfg.c now contains the configuration and selection of
backends and directors.
cache_backend.c contains the connection and request management against
backends.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2905
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 8 Jul 2008 09:48:05 +0000 (09:48 +0000)]
Note an idea
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2904
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 8 Jul 2008 09:17:42 +0000 (09:17 +0000)]
Also make the backend probe rate (how often we probe) configurable
in VCL.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2903
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 8 Jul 2008 09:15:32 +0000 (09:15 +0000)]
Add VCC support for backend probe specifications.
It is possible to specify just the URL to be probed, or to specify the
entire HTTP request:
backend b0 {
.host = "127.0.0.1";
.probe = {
.url = "/test.jpg";
.timeout = 224 ms;
}
}
backend b1 {
.host = "127.0.0.1";
.probe = {
# NB: \r\n automatically inserted after each string!
.request =
"GET / HTTP/1.1"
"Host: www.foo.bar"
"Connection: close";
.timeout = 0.3 s;
}
}
If the full request has not been completed within the timeout, the
backend will be set to down.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2902
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 8 Jul 2008 08:53:37 +0000 (08:53 +0000)]
assert !vsb_overflowed()
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2901
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 8 Jul 2008 07:30:42 +0000 (07:30 +0000)]
Unify parsing of backends and directors.
Use table to dispatch director parsing.
Get trailing '}' into backend host ident string.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2900
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 8 Jul 2008 07:10:41 +0000 (07:10 +0000)]
Add test for unknown director policy
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2899
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 8 Jul 2008 06:30:16 +0000 (06:30 +0000)]
Flexelint nits
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2898
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 22:19:05 +0000 (22:19 +0000)]
Don't create an unnecessary fencepost member.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2897
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 22:15:12 +0000 (22:15 +0000)]
Add testcase for creation and destruction of backends
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2896
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 22:11:39 +0000 (22:11 +0000)]
Dismantle directors and backends properly.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2895
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 21:49:21 +0000 (21:49 +0000)]
More polishing of backend parsing/syntax error messages
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2894
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 21:22:20 +0000 (21:22 +0000)]
Nitpicking
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2893
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 21:22:06 +0000 (21:22 +0000)]
Fix an encoding bug that affects VCLs shorter than 1 char.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2892
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 21:09:05 +0000 (21:09 +0000)]
testcase for unknown backend field
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2891
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 21:06:55 +0000 (21:06 +0000)]
Testcase for old backend syntax.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2890
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 21:01:25 +0000 (21:01 +0000)]
More polishing of backend compilation.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2889
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 20:26:58 +0000 (20:26 +0000)]
Move backend stuff to the correct .h file
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2888
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 18:26:15 +0000 (18:26 +0000)]
Don't allow the invisible simple director to reference backend defined
by another simple director, it would be too hard to explain why they
shared statistics and harder yet to make them not do so.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2887
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 18:21:06 +0000 (18:21 +0000)]
Redo toplevel parser to use table.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2886
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 18:02:06 +0000 (18:02 +0000)]
Move random director to separate source file.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2885
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 17:42:42 +0000 (17:42 +0000)]
Add a test-case for backend reference errors.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2884
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 17:42:27 +0000 (17:42 +0000)]
Improve error messages in backend specifications
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2883
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 17:21:57 +0000 (17:21 +0000)]
Just to avoid misunderstandings: say that we expected the VCL compilation errors.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2882
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 17:19:32 +0000 (17:19 +0000)]
Improve error messages related to syntax check of backend decls.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2881
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 17:19:10 +0000 (17:19 +0000)]
Add test-case or syntax-checks of backend decls.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2880
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 17:16:50 +0000 (17:16 +0000)]
Add -badvcl for VCL code we expect the compiler to whine about.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2879
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Mon, 7 Jul 2008 16:33:57 +0000 (16:33 +0000)]
White space fix
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2878
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 1 Jul 2008 19:31:53 +0000 (19:31 +0000)]
Polishing: use mini_obj.h
Use a hash for faster backend list search
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2877
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 1 Jul 2008 19:31:16 +0000 (19:31 +0000)]
Polish: use mini_obj.h
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2876
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 1 Jul 2008 19:30:54 +0000 (19:30 +0000)]
Use mini_obj more.
dlclose() VCL's when we throw them out.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2875
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 1 Jul 2008 19:30:11 +0000 (19:30 +0000)]
Fix cleanup errors on random director: release all backends.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2874
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 1 Jul 2008 19:29:01 +0000 (19:29 +0000)]
Make it possible to run custom VCL programs through flexelint.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2873
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Tue, 1 Jul 2008 19:23:56 +0000 (19:23 +0000)]
Fix a brain-o in the backend identification string: We need to
explicitly and uniquely identify all backend stanzas because they
have individual metrics.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2872
d4fa192b -c00b-0410-8231-
f00ffab90ce4
tfheen [Mon, 30 Jun 2008 09:08:01 +0000 (09:08 +0000)]
Make sure to distribute tests as well
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2871
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 30 Jun 2008 02:11:54 +0000 (02:11 +0000)]
Old patch: greatly improve performance and memory usage by using per-thread
pre-allocated buffers instead of malloc().
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2864
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 30 Jun 2008 02:03:58 +0000 (02:03 +0000)]
Convert from FILE * to fd.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2863
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 30 Jun 2008 01:44:33 +0000 (01:44 +0000)]
The correct return value when we reach the end is -1, not 0.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2862
d4fa192b -c00b-0410-8231-
f00ffab90ce4
des [Mon, 30 Jun 2008 01:40:12 +0000 (01:40 +0000)]
Change my email address.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2861
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 13:31:27 +0000 (13:31 +0000)]
Test switching of VCLs
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2860
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 13:12:02 +0000 (13:12 +0000)]
Test busy then pass
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2859
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 13:09:49 +0000 (13:09 +0000)]
test busying subsequent requests on backend access.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2858
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 13:09:15 +0000 (13:09 +0000)]
One second is too hysterical a timeout
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2857
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 12:58:46 +0000 (12:58 +0000)]
test miss from pass
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2856
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 12:51:47 +0000 (12:51 +0000)]
Test "hit for pass" (pass from vcl_fetch)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2855
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 12:48:12 +0000 (12:48 +0000)]
Test pass from vcl_hit{}
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2854
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 12:44:47 +0000 (12:44 +0000)]
Add test for simple restarts
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2853
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 12:32:02 +0000 (12:32 +0000)]
Add testcase for partial pipelining/read-ahead
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2852
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 12:30:42 +0000 (12:30 +0000)]
Add testcase for pipelining
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2851
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 12:30:25 +0000 (12:30 +0000)]
Fix a minor issue in pipelining
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2850
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 11:33:29 +0000 (11:33 +0000)]
Forgot to set resp.status
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2849
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 11:18:00 +0000 (11:18 +0000)]
Get "line1" request/reponse fields under control.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2848
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 11:16:58 +0000 (11:16 +0000)]
polish
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2847
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 11:04:54 +0000 (11:04 +0000)]
VCL/VRT testcase for proto/request/url/response fields.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2846
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 10:37:23 +0000 (10:37 +0000)]
add req.grace handling as well
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2845
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Fri, 27 Jun 2008 10:15:55 +0000 (10:15 +0000)]
Add testcase for VCL/VRT obj.ttl and obj.grace
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2844
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 22:55:25 +0000 (22:55 +0000)]
Be even more careful with server fd's
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2843
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 22:45:49 +0000 (22:45 +0000)]
Fix ESI:include tags: they have to be empty.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2842
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 22:27:37 +0000 (22:27 +0000)]
Use shutdown for both directions, TCP works correctly.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2841
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 22:14:02 +0000 (22:14 +0000)]
Drop a _.ok file if we are all done.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2840
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 22:12:23 +0000 (22:12 +0000)]
Close servers TCP connection more gracefully for EOF handling.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2839
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 21:42:05 +0000 (21:42 +0000)]
Oops, only enable $evilhack when we want to.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2838
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 21:09:32 +0000 (21:09 +0000)]
Testcase for ESI fragmented storage parsing
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2837
d4fa192b -c00b-0410-8231-
f00ffab90ce4
phk [Thu, 26 Jun 2008 21:07:07 +0000 (21:07 +0000)]
Add an undocumented debug facility that allows us to force a received
object to be fragmented into smaller bits are out command.
This is necessary to be able to write sensible testcases for the
abilities of the ESI parsing code to navigate storage boundaries.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2836
d4fa192b -c00b-0410-8231-
f00ffab90ce4