]> err.no Git - varnish/log
varnish
16 years agoMore XML/ESI testcases
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

16 years agoYet another XML/ESI parse corner case:
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

16 years agoMore XML/ESI syntax checks
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

16 years agoTackle another XML/ESI syntax error corner-case:
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

16 years agoTrigger a couple more XML/ESI parser errors
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

16 years agoFix two bugs in esi parsing:
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

16 years agoMore XML/ESI errors
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

16 years agoTest XML/ESI syntax errors etc.
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

16 years agoTest the vcl.load CLI command while we are at it.
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

16 years agoAdd a test for the -f argument
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

16 years agoFix an off-by one in the random director
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

16 years agoAdd a testcase for the random director doing actual work
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

16 years agoAdd a testcase to show that we can in fact get rid of both VCL's and
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

16 years agoAdd a testcase for the sema operations
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

16 years agoAdd Semaphore facility to synchronize different treads in the tester
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

16 years agoThe emminently sensible INFTIM isn't portable, use -1
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

16 years agoAdd stats counters for tracking the number of vcls loaded.
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

16 years agoMake it possible to check stats counter values for a varnish instance
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

16 years agoOpen the shm statistics when we launch a varnish
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

16 years agoRemove global "stats", stats are per varnish instance.
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

16 years agoChange the layout of the "vcl.list" to explicitly say "active",
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

16 years agoThe cachers CLI thread is responsible for garbage collecting dicarded
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

16 years agoAllow modification of the receive timeout
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

16 years agoSet svn:keywords to Id
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

16 years agoSplit the backend code into two files, the probe code will make it
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

16 years agoNote an idea
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

16 years agoAlso make the backend probe rate (how often we probe) configurable
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

16 years agoAdd VCC support for backend probe specifications.
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

16 years agoassert !vsb_overflowed()
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

16 years agoUnify parsing of backends and directors.
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

16 years agoAdd test for unknown director policy
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

16 years agoFlexelint nits
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

16 years agoDon't create an unnecessary fencepost member.
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

16 years agoAdd testcase for creation and destruction of backends
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

16 years agoDismantle directors and backends properly.
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

16 years agoMore polishing of backend parsing/syntax error messages
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

16 years agoNitpicking
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

16 years agoFix an encoding bug that affects VCLs shorter than 1 char.
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

16 years agotestcase for unknown backend field
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

16 years agoTestcase for old backend syntax.
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

16 years agoMore polishing of backend compilation.
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

16 years agoMove backend stuff to the correct .h file
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

16 years agoDon't allow the invisible simple director to reference backend defined
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

16 years agoRedo toplevel parser to use table.
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

16 years agoMove random director to separate source file.
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

16 years agoAdd a test-case for backend reference errors.
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

16 years agoImprove error messages in backend specifications
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

16 years agoJust to avoid misunderstandings: say that we expected the VCL compilation errors.
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

16 years agoImprove error messages related to syntax check of backend decls.
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

16 years agoAdd test-case or syntax-checks of backend decls.
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

16 years agoAdd -badvcl for VCL code we expect the compiler to whine about.
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

16 years agoWhite space fix
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

16 years agoPolishing: use mini_obj.h
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

16 years agoPolish: use mini_obj.h
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

16 years agoUse mini_obj more.
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

16 years agoFix cleanup errors on random director: release all backends.
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

16 years agoMake it possible to run custom VCL programs through flexelint.
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

16 years agoFix a brain-o in the backend identification string: We need to
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

16 years agoMake sure to distribute tests as well
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

16 years agoOld patch: greatly improve performance and memory usage by using per-thread
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

16 years agoConvert from FILE * to fd.
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

16 years agoThe correct return value when we reach the end is -1, not 0.
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

16 years agoChange my email address.
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

16 years agoTest switching of VCLs
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

16 years agoTest busy then pass
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

16 years agotest busying subsequent requests on backend access.
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

16 years agoOne second is too hysterical a timeout
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

16 years agotest miss from pass
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

16 years agoTest "hit for pass" (pass from vcl_fetch)
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

16 years agoTest pass from vcl_hit{}
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

16 years agoAdd test for simple restarts
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

16 years agoAdd testcase for partial pipelining/read-ahead
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

16 years agoAdd testcase for pipelining
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

16 years agoFix a minor issue in pipelining
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

16 years agoForgot to set resp.status
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

16 years agoGet "line1" request/reponse fields under control.
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

16 years agopolish
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

16 years agoVCL/VRT testcase for proto/request/url/response fields.
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

16 years agoadd req.grace handling as well
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

16 years agoAdd testcase for VCL/VRT obj.ttl and obj.grace
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

16 years agoBe even more careful with server fd's
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

16 years agoFix ESI:include tags: they have to be empty.
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

16 years agoUse shutdown for both directions, TCP works correctly.
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

16 years agoDrop a _.ok file if we are all done.
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

16 years agoClose servers TCP connection more gracefully for EOF handling.
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

16 years agoOops, only enable $evilhack when we want to.
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

16 years agoTestcase for ESI fragmented storage parsing
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

16 years agoAdd an undocumented debug facility that allows us to force a received
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

16 years agoTest for HTTP/1.0 (EOF) transmission
phk [Thu, 26 Jun 2008 12:41:51 +0000 (12:41 +0000)]
Test for HTTP/1.0 (EOF) transmission

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

16 years agoTwo slow testcases to test object expiry
phk [Thu, 26 Jun 2008 12:32:06 +0000 (12:32 +0000)]
Two slow testcases to test object expiry

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

16 years agoTest If-Modified-Since
phk [Thu, 26 Jun 2008 12:12:29 +0000 (12:12 +0000)]
Test If-Modified-Since

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

16 years agoESI testcase for including from different host (http://...)
phk [Thu, 26 Jun 2008 11:55:39 +0000 (11:55 +0000)]
ESI testcase for including from different host (http://...)

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

16 years agoESI include with relative src
phk [Thu, 26 Jun 2008 11:49:58 +0000 (11:49 +0000)]
ESI include with relative src

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

16 years agoTest banning a hash
phk [Thu, 26 Jun 2008 11:36:46 +0000 (11:36 +0000)]
Test banning a hash

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

16 years agoTest banning a URL
phk [Thu, 26 Jun 2008 11:36:07 +0000 (11:36 +0000)]
Test banning a URL

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

16 years agoA testcase for the simple_list hasher
phk [Thu, 26 Jun 2008 11:24:25 +0000 (11:24 +0000)]
A testcase for the simple_list hasher

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

16 years agoTestcase for the poll acceptor
phk [Thu, 26 Jun 2008 11:17:03 +0000 (11:17 +0000)]
Testcase for the poll acceptor

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

16 years agoAllow the selector to be chosen by parameter "acceptor"
phk [Thu, 26 Jun 2008 11:15:22 +0000 (11:15 +0000)]
Allow the selector to be chosen by parameter "acceptor"

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

16 years agoCommented ESI:include
phk [Thu, 26 Jun 2008 10:41:56 +0000 (10:41 +0000)]
Commented ESI:include

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

16 years agoESI:include test case
phk [Thu, 26 Jun 2008 10:39:23 +0000 (10:39 +0000)]
ESI:include test case

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