From ed0e7acf233d046444bc0a4a7172f446edd3675f Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 11 Jul 2008 18:57:13 +0000 Subject: [PATCH] Emit backend probe data to ->fb. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2935 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvcl/vcc_backend.c | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/varnish-cache/lib/libvcl/vcc_backend.c b/varnish-cache/lib/libvcl/vcc_backend.c index 7c410bfa..d8367071 100644 --- a/varnish-cache/lib/libvcl/vcc_backend.c +++ b/varnish-cache/lib/libvcl/vcc_backend.c @@ -341,7 +341,7 @@ vcc_ParseProbe(struct tokenlist *tl) ExpectErr(tl, '{'); vcc_NextToken(tl); - Fh(tl, 0, "\t.probe = {\n"); + Fb(tl, 0, "\t.probe = {\n"); while (tl->t->tok != '}') { vcc_IsField(tl, &t_field, fs); @@ -352,35 +352,35 @@ vcc_ParseProbe(struct tokenlist *tl) vcc_ProbeRedef(tl, &t_did, t_field); ERRCHK(tl); ExpectErr(tl, CSTR); - Fh(tl, 0, "\t\t.request =\n"); - Fh(tl, 0, "\t\t\t\"GET \" "); + Fb(tl, 0, "\t\t.request =\n"); + Fb(tl, 0, "\t\t\t\"GET \" "); EncToken(tl->fb, tl->t); - Fh(tl, 0, " \" /HTTP/1.1\\r\\n\"\n"); - Fh(tl, 0, "\t\t\t\"Connection: close\\r\\n\"\n"); - Fh(tl, 0, "\t\t\t\"\\r\\n\",\n"); + Fb(tl, 0, " \" /HTTP/1.1\\r\\n\"\n"); + Fb(tl, 0, "\t\t\t\"Connection: close\\r\\n\"\n"); + Fb(tl, 0, "\t\t\t\"\\r\\n\",\n"); vcc_NextToken(tl); } else if (vcc_IdIs(t_field, "request")) { vcc_ProbeRedef(tl, &t_did, t_field); ERRCHK(tl); ExpectErr(tl, CSTR); - Fh(tl, 0, "\t\t.request =\n"); + Fb(tl, 0, "\t\t.request =\n"); while (tl->t->tok == CSTR) { - Fh(tl, 0, "\t\t\t"); + Fb(tl, 0, "\t\t\t"); EncToken(tl->fb, tl->t); - Fh(tl, 0, " \"\\r\\n\"\n"); + Fb(tl, 0, " \"\\r\\n\"\n"); vcc_NextToken(tl); } - Fh(tl, 0, "\t\t\t\"\\r\\n\",\n"); + Fb(tl, 0, "\t\t\t\"\\r\\n\",\n"); } else if (vcc_IdIs(t_field, "timeout")) { - Fh(tl, 0, "\t\t.timeout = "); + Fb(tl, 0, "\t\t.timeout = "); vcc_TimeVal(tl); ERRCHK(tl); - Fh(tl, 0, ",\n"); + Fb(tl, 0, ",\n"); } else if (vcc_IdIs(t_field, "rate")) { - Fh(tl, 0, "\t\t.rate = "); + Fb(tl, 0, "\t\t.rate = "); vcc_TimeVal(tl); ERRCHK(tl); - Fh(tl, 0, ",\n"); + Fb(tl, 0, ",\n"); } else { vcc_ErrToken(tl, t_field); vcc_ErrWhere(tl, t_field); @@ -391,7 +391,7 @@ vcc_ParseProbe(struct tokenlist *tl) ExpectErr(tl, ';'); vcc_NextToken(tl); } - Fh(tl, 0, "\t},\n"); + Fb(tl, 0, "\t},\n"); ExpectErr(tl, '}'); vcc_NextToken(tl); } -- 2.39.5