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
99fe0674
Commit
99fe0674
authored
Oct 23, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further untangling of the VDP stack
parent
a86fd4f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
cache_esi_deliver.c
bin/varnishd/cache/cache_esi_deliver.c
+0
-2
cache_http1_deliver.c
bin/varnishd/http1/cache_http1_deliver.c
+4
-11
No files found.
bin/varnishd/cache/cache_esi_deliver.c
View file @
99fe0674
...
...
@@ -156,8 +156,6 @@ ved_include(struct req *preq, const char *src, const char *host)
}
AN
(
V1L_IsReleased
(
wrk
));
VDP_close
(
req
);
CNT_AcctLogCharge
(
wrk
->
stats
,
req
);
VSL_End
(
req
->
vsl
);
...
...
bin/varnishd/http1/cache_http1_deliver.c
View file @
99fe0674
...
...
@@ -345,14 +345,11 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
if
(
req
->
esi_level
==
0
&&
req
->
res_mode
&
RES_GUNZIP
)
VDP_push
(
req
,
VDP_gunzip
,
NULL
);
ESI_Deliver
(
req
);
if
(
req
->
esi_level
==
0
&&
req
->
res_mode
&
RES_GUNZIP
)
VDP_pop
(
req
,
VDP_gunzip
);
}
else
if
(
req
->
res_mode
&
RES_ESI_CHILD
)
{
if
(
req
->
gzip_resp
&&
!
ObjCheckFlag
(
req
->
wrk
,
req
->
objcore
,
OF_GZIPED
))
{
VDP_push
(
req
,
VED_pretend_gzip
,
NULL
);
ois
=
v1d_WriteDirObj
(
req
);
VDP_pop
(
req
,
VED_pretend_gzip
);
}
else
if
(
req
->
gzip_resp
)
{
if
(
bo
!=
NULL
)
VBO_waitstate
(
bo
,
BOS_FINISHED
);
...
...
@@ -361,19 +358,16 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
ObjCheckFlag
(
req
->
wrk
,
req
->
objcore
,
OF_GZIPED
))
{
VDP_push
(
req
,
VDP_gunzip
,
NULL
);
ois
=
v1d_WriteDirObj
(
req
);
VDP_pop
(
req
,
VDP_gunzip
);
}
else
{
/* The toplevel will gunzip if needed */
ois
=
v1d_WriteDirObj
(
req
);
}
}
else
if
((
req
->
res_mode
&
RES_GUNZIP
)
&&
ObjCheckFlag
(
req
->
wrk
,
req
->
objcore
,
OF_GZIPED
))
{
VDP_push
(
req
,
VDP_gunzip
,
NULL
);
ois
=
v1d_WriteDirObj
(
req
);
VDP_pop
(
req
,
VDP_gunzip
);
}
else
{
if
(
req
->
res_mode
&
RES_GUNZIP
)
VDP_push
(
req
,
VDP_gunzip
,
NULL
);
ois
=
v1d_WriteDirObj
(
req
);
}
(
void
)
VDP_bytes
(
req
,
VDP_FLUSH
,
NULL
,
0
);
if
(
ois
==
OIS_DONE
&&
(
req
->
res_mode
&
RES_CHUNKED
)
&&
...
...
@@ -383,6 +377,5 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
if
((
V1L_FlushRelease
(
req
->
wrk
)
||
ois
!=
OIS_DONE
)
&&
req
->
sp
->
fd
>=
0
)
SES_Close
(
req
->
sp
,
SC_REM_CLOSE
);
if
(
req
->
esi_level
==
0
)
VDP_close
(
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