Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
e4072d36
Commit
e4072d36
authored
Mar 11, 2013
by
Tollef Fog Heen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Count number of times we go through vcl_error
parent
e707a738
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
0 deletions
+8
-0
cache_req_fsm.c
bin/varnishd/cache/cache_req_fsm.c
+1
-0
b00017.vtc
bin/varnishtest/tests/b00017.vtc
+2
-0
acct_fields.h
include/tbl/acct_fields.h
+1
-0
vsc_f_main.h
include/tbl/vsc_f_main.h
+4
-0
No files found.
bin/varnishd/cache/cache_req_fsm.c
View file @
e4072d36
...
@@ -267,6 +267,7 @@ cnt_error(struct worker *wrk, struct req *req)
...
@@ -267,6 +267,7 @@ cnt_error(struct worker *wrk, struct req *req)
AZ
(
req
->
obj
);
AZ
(
req
->
obj
);
AZ
(
req
->
busyobj
);
AZ
(
req
->
busyobj
);
req
->
acct_req
.
error
++
;
bo
=
VBO_GetBusyObj
(
wrk
,
req
);
bo
=
VBO_GetBusyObj
(
wrk
,
req
);
req
->
busyobj
=
bo
;
req
->
busyobj
=
bo
;
AZ
(
bo
->
stats
);
AZ
(
bo
->
stats
);
...
...
bin/varnishtest/tests/b00017.vtc
View file @
e4072d36
...
@@ -15,3 +15,5 @@ client c1 {
...
@@ -15,3 +15,5 @@ client c1 {
expect resp.status == 888
expect resp.status == 888
expect resp.http.connection == close
expect resp.http.connection == close
} -run
} -run
varnish v1 -expect s_error == 1
include/tbl/acct_fields.h
View file @
e4072d36
...
@@ -35,5 +35,6 @@ ACCT(req)
...
@@ -35,5 +35,6 @@ ACCT(req)
ACCT
(
pipe
)
ACCT
(
pipe
)
ACCT
(
pass
)
ACCT
(
pass
)
ACCT
(
fetch
)
ACCT
(
fetch
)
ACCT
(
error
)
ACCT
(
hdrbytes
)
ACCT
(
hdrbytes
)
ACCT
(
bodybytes
)
ACCT
(
bodybytes
)
include/tbl/vsc_f_main.h
View file @
e4072d36
...
@@ -370,6 +370,10 @@ VSC_F(s_fetch, uint64_t, 1, 'a',
...
@@ -370,6 +370,10 @@ VSC_F(s_fetch, uint64_t, 1, 'a',
"Total fetch"
,
"Total fetch"
,
""
""
)
)
VSC_F
(
s_error
,
uint64_t
,
1
,
'a'
,
"Total error"
,
""
)
VSC_F
(
s_hdrbytes
,
uint64_t
,
1
,
'a'
,
VSC_F
(
s_hdrbytes
,
uint64_t
,
1
,
'a'
,
"Total header bytes"
,
"Total header bytes"
,
""
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment