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
27fd76aa
Commit
27fd76aa
authored
Feb 20, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use 8k stackbuffer, now that thread-stacks get smaller.
parent
c53ab05e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
8 deletions
+19
-8
vmod_std.c
lib/libvmod_std/vmod_std.c
+19
-8
No files found.
lib/libvmod_std/vmod_std.c
View file @
27fd76aa
...
...
@@ -145,28 +145,39 @@ vmod_random(struct sess *sp, double lo, double hi)
void
__match_proto__
()
vmod_log
(
struct
sess
*
sp
,
const
char
*
fmt
,
...)
{
char
buf
[
8192
],
*
p
;
char
*
p
;
unsigned
u
;
va_list
ap
;
txt
t
;
u
=
WS_Reserve
(
sp
->
req
->
ws
,
0
);
p
=
sp
->
req
->
ws
->
f
;
va_start
(
ap
,
fmt
);
p
=
VRT_StringList
(
buf
,
sizeof
buf
,
fmt
,
ap
);
p
=
VRT_StringList
(
p
,
u
,
fmt
,
ap
);
va_end
(
ap
);
if
(
p
!=
NULL
)
VSLb
(
sp
->
req
->
vsl
,
SLT_VCL_Log
,
"%s"
,
buf
);
if
(
p
!=
NULL
)
{
t
.
b
=
p
;
t
.
e
=
strchr
(
p
,
'\0'
);
VSLbt
(
sp
->
req
->
vsl
,
SLT_VCL_Log
,
t
);
}
WS_Release
(
sp
->
req
->
ws
,
0
);
}
void
vmod_syslog
(
struct
sess
*
sp
,
int
fac
,
const
char
*
fmt
,
...)
{
char
buf
[
8192
],
*
p
;
char
*
p
;
unsigned
u
;
va_list
ap
;
(
void
)
sp
;
u
=
WS_Reserve
(
sp
->
req
->
ws
,
0
);
p
=
sp
->
req
->
ws
->
f
;
va_start
(
ap
,
fmt
);
p
=
VRT_StringList
(
buf
,
sizeof
buf
,
fmt
,
ap
);
p
=
VRT_StringList
(
p
,
u
,
fmt
,
ap
);
va_end
(
ap
);
if
(
p
!=
NULL
)
syslog
(
fac
,
"%s"
,
buf
);
syslog
(
fac
,
"%s"
,
p
);
WS_Release
(
sp
->
req
->
ws
,
0
);
}
const
char
*
__match_proto__
()
...
...
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