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
438c9b43
Commit
438c9b43
authored
Nov 05, 2016
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
4703d920
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
cache_http1_fsm.c
bin/varnishd/http1/cache_http1_fsm.c
+17
-9
No files found.
bin/varnishd/http1/cache_http1_fsm.c
View file @
438c9b43
...
...
@@ -263,16 +263,21 @@ http1_dissect(struct worker *wrk, struct req *req)
assert
(
req
->
req_body_status
==
REQ_BODY_INIT
);
if
(
req
->
htc
->
body_status
==
BS_CHUNKED
)
{
switch
(
req
->
htc
->
body_status
)
{
case
BS_CHUNKED
:
req
->
req_body_status
=
REQ_BODY_WITHOUT_LEN
;
}
else
if
(
req
->
htc
->
body_status
==
BS_LENGTH
)
{
break
;
case
BS_LENGTH
:
req
->
req_body_status
=
REQ_BODY_WITH_LEN
;
}
else
if
(
req
->
htc
->
body_status
==
BS_NONE
)
{
break
;
case
BS_NONE
:
req
->
req_body_status
=
REQ_BODY_NONE
;
}
else
if
(
req
->
htc
->
body_status
==
BS_EOF
)
{
break
;
case
BS_EOF
:
req
->
req_body_status
=
REQ_BODY_WITHOUT_LEN
;
}
else
{
WRONG
(
"Unknown req.body_length situation"
);
break
;
default:
WRONG
(
"Unknown req_body_status situation"
);
}
if
(
http_GetHdr
(
req
->
http
,
H_Expect
,
&
p
))
{
...
...
@@ -404,7 +409,8 @@ 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
;
}
...
...
@@ -424,7 +430,8 @@ HTTP1_Session(struct worker *wrk, struct req *req)
VSLb
(
req
->
vsl
,
SLT_Debug
,
"H2 upgrade attempt has body"
);
}
else
{
VSLb
(
req
->
vsl
,
SLT_Debug
,
"H2 Upgrade"
);
VSLb
(
req
->
vsl
,
SLT_Debug
,
"H2 Upgrade"
);
http1_setstate
(
sp
,
NULL
);
req
->
err_code
=
2
;
SES_SetTransport
(
wrk
,
sp
,
req
,
...
...
@@ -441,7 +448,8 @@ HTTP1_Session(struct worker *wrk, struct req *req)
*/
if
(
VTCP_check_hup
(
sp
->
fd
))
{
AN
(
req
->
hash_objhead
);
(
void
)
HSH_DerefObjHead
(
wrk
,
&
req
->
hash_objhead
);
(
void
)
HSH_DerefObjHead
(
wrk
,
&
req
->
hash_objhead
);
AZ
(
req
->
hash_objhead
);
SES_Close
(
sp
,
SC_REM_CLOSE
);
AN
(
Req_Cleanup
(
sp
,
wrk
,
req
));
...
...
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