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
0b1fa10a
Commit
0b1fa10a
authored
Jun 23, 2014
by
Andreas Plesner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add varnishncsa logging of pipe requests
Fixes #1269
parent
542e5c70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
varnishncsa.c
bin/varnishncsa/varnishncsa.c
+10
-7
No files found.
bin/varnishncsa/varnishncsa.c
View file @
0b1fa10a
...
@@ -558,7 +558,7 @@ parse_format(const char *format)
...
@@ -558,7 +558,7 @@ parse_format(const char *format)
addf_requestline
();
addf_requestline
();
break
;
break
;
case
's'
:
/* Status code */
case
's'
:
/* Status code */
addf_fragment
(
&
CTX
.
frag
[
F_s
],
""
);
addf_fragment
(
&
CTX
.
frag
[
F_s
],
"
-
"
);
break
;
break
;
case
't'
:
/* strftime */
case
't'
:
/* strftime */
addf_time
(
*
p
,
TIME_FMT
,
NULL
);
addf_time
(
*
p
,
TIME_FMT
,
NULL
);
...
@@ -791,11 +791,13 @@ dispatch_f(struct VSL_data *vsl, struct VSL_transaction * const pt[],
...
@@ -791,11 +791,13 @@ dispatch_f(struct VSL_data *vsl, struct VSL_transaction * const pt[],
frag_fields
(
p
,
e
,
1
,
frag_fields
(
p
,
e
,
1
,
&
CTX
.
frag
[
F_tstart
],
0
,
NULL
);
&
CTX
.
frag
[
F_tstart
],
0
,
NULL
);
}
else
if
(
isprefix
(
b
,
"Resp:"
,
e
,
&
p
))
{
}
else
if
(
isprefix
(
b
,
"Resp:"
,
e
,
&
p
)
||
isprefix
(
b
,
"PipeSess:"
,
e
,
&
p
))
{
frag_fields
(
p
,
e
,
1
,
frag_fields
(
p
,
e
,
1
,
&
CTX
.
frag
[
F_tend
],
0
,
NULL
);
&
CTX
.
frag
[
F_tend
],
0
,
NULL
);
}
else
if
(
isprefix
(
b
,
"Process:"
,
e
,
&
p
))
{
}
else
if
(
isprefix
(
b
,
"Process:"
,
e
,
&
p
)
||
isprefix
(
b
,
"Pipe:"
,
e
,
&
p
))
{
frag_fields
(
p
,
e
,
2
,
frag_fields
(
p
,
e
,
2
,
&
CTX
.
frag
[
F_ttfb
],
0
,
NULL
);
&
CTX
.
frag
[
F_ttfb
],
0
,
NULL
);
}
}
...
@@ -826,14 +828,15 @@ dispatch_f(struct VSL_data *vsl, struct VSL_transaction * const pt[],
...
@@ -826,14 +828,15 @@ dispatch_f(struct VSL_data *vsl, struct VSL_transaction * const pt[],
wrong */
wrong */
CTX
.
hitmiss
=
"miss"
;
CTX
.
hitmiss
=
"miss"
;
CTX
.
handling
=
"error"
;
CTX
.
handling
=
"error"
;
}
else
if
(
!
strcasecmp
(
b
,
"pipe"
))
{
CTX
.
hitmiss
=
"miss"
;
CTX
.
handling
=
"pipe"
;
}
}
break
;
break
;
case
SLT_VCL_return
:
case
SLT_VCL_return
:
if
(
!
strcasecmp
(
b
,
"restart"
))
if
(
!
strcasecmp
(
b
,
"restart"
))
{
skip
=
1
;
skip
=
1
;
}
else
if
(
!
strcasecmp
(
b
,
"pipe"
))
{
CTX
.
hitmiss
=
"miss"
;
CTX
.
handling
=
"pipe"
;
}
break
;
break
;
default:
default:
break
;
break
;
...
...
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