Permalink
Browse files

Count number of times we go through vcl_error

  • Loading branch information...
1 parent e707a73 commit e4072d36821a882bac743b2f6bee132315332311 Tollef Fog Heen committed Mar 11, 2013
@@ -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",
""

0 comments on commit e4072d3

Please sign in to comment.