Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
cb3e952b
Commit
cb3e952b
authored
Mar 11, 2013
by
Tollef Fog Heen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Treat error as miss + error in %{Varnish:handling}x format
Fixes #1273
parent
c9e3914a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
varnishncsa.c
bin/varnishncsa/varnishncsa.c
+5
-0
No files found.
bin/varnishncsa/varnishncsa.c
View file @
cb3e952b
...
@@ -521,6 +521,11 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
...
@@ -521,6 +521,11 @@ collect_client(struct logline *lp, enum VSL_tag_e tag, unsigned spec,
}
else
if
(
strncmp
(
ptr
,
"pass"
,
len
)
==
0
)
{
}
else
if
(
strncmp
(
ptr
,
"pass"
,
len
)
==
0
)
{
lp
->
df_hitmiss
=
"miss"
;
lp
->
df_hitmiss
=
"miss"
;
lp
->
df_handling
=
"pass"
;
lp
->
df_handling
=
"pass"
;
}
else
if
(
strncmp
(
ptr
,
"error"
,
len
)
==
0
)
{
/* Arguably, error isn't a hit or a miss, but
miss is less wrong */
lp
->
df_hitmiss
=
"miss"
;
lp
->
df_handling
=
"error"
;
}
else
if
(
strncmp
(
ptr
,
"pipe"
,
len
)
==
0
)
{
}
else
if
(
strncmp
(
ptr
,
"pipe"
,
len
)
==
0
)
{
/* Just skip piped requests, since we can't
/* Just skip piped requests, since we can't
* print their status code */
* print their status code */
...
...
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