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
03602d9f
Commit
03602d9f
authored
Feb 01, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't panic if people send us HTTP2.0 when it is not enabled.
Explains some of #2117 and friends
parent
272fc957
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
cache_http1_fsm.c
bin/varnishd/http1/cache_http1_fsm.c
+2
-6
sess_close.h
include/tbl/sess_close.h
+2
-1
No files found.
bin/varnishd/http1/cache_http1_fsm.c
View file @
03602d9f
...
...
@@ -401,10 +401,7 @@ HTTP1_Session(struct worker *wrk, struct req *req)
if
(
H2_prism_complete
(
req
->
htc
)
==
HTC_S_COMPLETE
)
{
if
(
!
FEATURE
(
FEATURE_HTTP2
))
{
VSLb
(
req
->
vsl
,
SLT_Debug
,
"H2 attempt"
);
assert
(
req
->
doclose
>
0
);
SES_Close
(
req
->
sp
,
req
->
doclose
);
SES_Close
(
req
->
sp
,
SC_REQ_HTTP20
);
http1_setstate
(
sp
,
H1CLEANUP
);
continue
;
}
...
...
@@ -412,8 +409,7 @@ HTTP1_Session(struct worker *wrk, struct req *req)
"H2 Prior Knowledge Upgrade"
);
http1_setstate
(
sp
,
NULL
);
req
->
err_code
=
1
;
SES_SetTransport
(
wrk
,
sp
,
req
,
&
H2_transport
);
SES_SetTransport
(
wrk
,
sp
,
req
,
&
H2_transport
);
return
;
}
...
...
include/tbl/sess_close.h
View file @
03602d9f
...
...
@@ -44,7 +44,8 @@ SESS_CLOSE(TX_EOF, tx_eof, 0, "EOF transmission")
SESS_CLOSE
(
RESP_CLOSE
,
resp_close
,
0
,
"Backend/VCL requested close"
)
SESS_CLOSE
(
OVERLOAD
,
overload
,
1
,
"Out of some resource"
)
SESS_CLOSE
(
PIPE_OVERFLOW
,
pipe_overflow
,
1
,
"Session pipe overflow"
)
SESS_CLOSE
(
RANGE_SHORT
,
range_short
,
1
,
"Insufficient data for range"
)
SESS_CLOSE
(
RANGE_SHORT
,
range_short
,
1
,
"Insufficient data for range"
)
SESS_CLOSE
(
REQ_HTTP20
,
req_http20
,
1
,
"HTTP2 not accepted"
)
#undef SESS_CLOSE
/*lint -restore */
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