Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent3
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
varnishevent3
Commits
4f20312a
Commit
4f20312a
authored
Apr 11, 2013
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
varnishevent: added length high watermark
parent
84791d61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
varnishevent.c
bin/varnishevent/varnishevent.c
+7
-4
No files found.
bin/varnishevent/varnishevent.c
View file @
4f20312a
...
...
@@ -110,7 +110,7 @@ VTAILQ_HEAD(insert_head_s, fd_t);
static
struct
insert_head_s
insert_head
=
VTAILQ_HEAD_INITIALIZER
(
insert_head
);
static
unsigned
seen
=
0
,
open
=
0
,
submitted
=
0
,
not_logged
=
0
,
occ_hi
=
0
,
waits
=
0
,
len_overflows
=
0
,
hdr_overflows
=
0
,
expired
=
0
;
len_hi
=
0
,
waits
=
0
,
len_overflows
=
0
,
hdr_overflows
=
0
,
expired
=
0
;
/* Hack, because we cannot have #ifdef in the macro definition SIGDISP */
#define _UNDEFINED(SIG) ((#SIG)[0] == 0)
...
...
@@ -161,10 +161,10 @@ RDR_Stats(void)
{
LOG_Log
(
LOG_INFO
,
"Reader (%s): fd_max=%u seen=%u open=%u load=%.2f "
"submitted=%u not_logged=%u occ_hi=%u waits=%u expired=%u free=%u "
"len_overflows=%u hdr_overflows=%u"
,
"len_
hi=%u len_
overflows=%u hdr_overflows=%u"
,
waiting
?
"waiting"
:
"running"
,
config
.
max_fd
,
seen
,
open
,
100
.
0
*
open
/
config
.
max_fd
,
submitted
,
not_logged
,
occ_hi
,
waits
,
expired
,
rdr_free
,
len_overflows
,
hdr_overflows
);
expired
,
rdr_free
,
len_
hi
,
len_
overflows
,
hdr_overflows
);
}
static
inline
logline_t
...
...
@@ -317,7 +317,10 @@ collect(struct logline_t *lp, enum VSL_tag_e tag, unsigned spec,
if
(
tag
==
SLT_VCL_Log
&&
memchr
(
ptr
,
':'
,
len
)
==
NULL
)
return
;
if
(
len
>
len_hi
)
len_hi
=
len
;
if
(
len
>
config
.
max_reclen
)
{
LOG_Log
(
LOG_ALERT
,
"Data length %u exceeds max %u, DATA TRUNCATED: %s [%.*s]"
,
...
...
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