Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Count number of times we go through vcl_error

  • Loading branch information...
commit e4072d36821a882bac743b2f6bee132315332311 1 parent e707a73
Tollef Fog Heen authored
View
1  bin/varnishd/cache/cache_req_fsm.c
@@ -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);
View
2  bin/varnishtest/tests/b00017.vtc
@@ -15,3 +15,5 @@ client c1 {
expect resp.status == 888
expect resp.http.connection == close
} -run
+
+varnish v1 -expect s_error == 1
View
1  include/tbl/acct_fields.h
@@ -35,5 +35,6 @@ ACCT(req)
ACCT(pipe)
ACCT(pass)
ACCT(fetch)
+ACCT(error)
ACCT(hdrbytes)
ACCT(bodybytes)
View
4 include/tbl/vsc_f_main.h
@@ -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",
""
Please sign in to comment.
Something went wrong with that request. Please try again.