]> err.no Git - varnish/commit
Add VCC support for backend probe specifications.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 8 Jul 2008 09:15:32 +0000 (09:15 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 8 Jul 2008 09:15:32 +0000 (09:15 +0000)
commit63342860938f85b4c8d085b4e1d0ac5ff032100d
tree33ac02d6f477ede8b40205e4a97f826a33c153dc
parent310feaa32f87b84ac639fe13e83d60c4da9f5acb
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
varnish-cache/bin/varnishtest/tests/v00005.vtc [new file with mode: 0644]
varnish-cache/include/vrt.h
varnish-cache/lib/libvcl/vcc_backend.c
varnish-cache/lib/libvcl/vcc_fixed_token.c