Commit e4072d36 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Count number of times we go through vcl_error

parent e707a738
......@@ -267,6 +267,7 @@ cnt_error(struct worker *wrk, struct req *req)
AZ(req->obj);
AZ(req->busyobj);
req->acct_req.error++;
bo = VBO_GetBusyObj(wrk, req);
req->busyobj = bo;
AZ(bo->stats);
......
......@@ -15,3 +15,5 @@ client c1 {
expect resp.status == 888
expect resp.http.connection == close
} -run
varnish v1 -expect s_error == 1
......@@ -35,5 +35,6 @@ ACCT(req)
ACCT(pipe)
ACCT(pass)
ACCT(fetch)
ACCT(error)
ACCT(hdrbytes)
ACCT(bodybytes)
......@@ -370,6 +370,10 @@ VSC_F(s_fetch, uint64_t, 1, 'a',
"Total fetch",
""
)
VSC_F(s_error, uint64_t, 1, 'a',
"Total error",
""
)
VSC_F(s_hdrbytes, uint64_t, 1, 'a',
"Total header bytes",
""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment