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
06c83b96
Commit
06c83b96
authored
Apr 02, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass sensible maxlengths to HTC_RxStuff() and document how the
workspace_client parameter influences H2 traffic.
parent
7179b965
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
cache_http2_proto.c
bin/varnishd/http2/cache_http2_proto.c
+1
-1
cache_http2_session.c
bin/varnishd/http2/cache_http2_session.c
+2
-1
params.h
include/tbl/params.h
+5
-1
No files found.
bin/varnishd/http2/cache_http2_proto.c
View file @
06c83b96
...
...
@@ -827,7 +827,7 @@ h2_rxframe(struct worker *wrk, struct h2_sess *h2)
hs
=
HTC_RxStuff
(
h2
->
htc
,
h2_frame_complete
,
NULL
,
NULL
,
NAN
,
h2
->
sess
->
t_idle
+
cache_param
->
timeout_idle
+
100
,
1
024
);
1
6384
+
9
);
// rfc7540,l,4228,4228
if
(
hs
!=
HTC_S_COMPLETE
)
{
Lck_Lock
(
&
h2
->
sess
->
mtx
);
VSLb
(
h2
->
vsl
,
SLT_Debug
,
"H2: No frame (hs=%d)"
,
hs
);
...
...
bin/varnishd/http2/cache_http2_session.c
View file @
06c83b96
...
...
@@ -238,7 +238,8 @@ h2_ou_session(struct worker *wrk, struct h2_sess *h2,
/* Wait for PRISM response */
hs
=
HTC_RxStuff
(
h2
->
htc
,
H2_prism_complete
,
NULL
,
NULL
,
NAN
,
h2
->
sess
->
t_idle
+
cache_param
->
timeout_idle
,
256
);
NULL
,
NULL
,
NAN
,
h2
->
sess
->
t_idle
+
cache_param
->
timeout_idle
,
sizeof
H2_prism
);
if
(
hs
!=
HTC_S_COMPLETE
)
{
VSLb
(
h2
->
vsl
,
SLT_Debug
,
"H2: No/Bad OU PRISM (hs=%d)"
,
hs
);
h2_del_req
(
wrk
,
r2
);
...
...
include/tbl/params.h
View file @
06c83b96
...
...
@@ -1611,7 +1611,11 @@ PARAM(
/* flags */
DELAYED_EFFECT
,
/* s-text */
"Bytes of HTTP protocol workspace for clients HTTP req/resp. Use a "
"multiple of 4k for VM efficiency."
,
"multiple of 4k for VM efficiency.
\n
"
"For HTTP/2 compliance this must be at least 20k, in order to "
"receive fullsize (=16k) frames from the client. That usually "
"happens only in POST/PUT bodies. For other traffic-patterns "
"smaller values work just fine."
,
/* l-text */
""
,
/* func */
NULL
)
...
...
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