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
03505109
Commit
03505109
authored
Oct 27, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Range: for ESI requests
parent
be77dbca
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
9 deletions
+8
-9
cache_deliver_proc.c
bin/varnishd/cache/cache_deliver_proc.c
+3
-3
cache_filter.h
bin/varnishd/cache/cache_filter.h
+0
-1
cache_http1_deliver.c
bin/varnishd/http1/cache_http1_deliver.c
+1
-1
e00003.vtc
bin/varnishtest/tests/e00003.vtc
+2
-2
l00003.vtc
bin/varnishtest/tests/l00003.vtc
+2
-2
No files found.
bin/varnishd/cache/cache_deliver_proc.c
View file @
03505109
...
...
@@ -70,8 +70,8 @@ VDP_push(struct req *req, vdp_bytes *func, void *priv)
AZ
(
vdp
->
func
(
req
,
VDP_INIT
,
&
vdp
->
priv
,
NULL
,
0
));
}
void
VDP
_pop
(
struct
req
*
req
,
vdp_bytes
*
func
)
static
void
vdp
_pop
(
struct
req
*
req
,
vdp_bytes
*
func
)
{
struct
vdp_entry
*
vdp
;
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
...
...
@@ -91,5 +91,5 @@ VDP_close(struct req *req)
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
while
(
!
VTAILQ_EMPTY
(
&
req
->
vdp
))
VDP
_pop
(
req
,
VTAILQ_FIRST
(
&
req
->
vdp
)
->
func
);
vdp
_pop
(
req
,
VTAILQ_FIRST
(
&
req
->
vdp
)
->
func
);
}
bin/varnishd/cache/cache_filter.h
View file @
03505109
...
...
@@ -107,7 +107,6 @@ struct vdp_entry {
int
VDP_bytes
(
struct
req
*
,
enum
vdp_action
act
,
const
void
*
ptr
,
ssize_t
len
);
void
VDP_push
(
struct
req
*
,
vdp_bytes
*
func
,
void
*
priv
);
void
VDP_pop
(
struct
req
*
,
vdp_bytes
*
func
);
void
VDP_close
(
struct
req
*
req
);
vdp_bytes
VDP_gunzip
;
...
...
bin/varnishd/http1/cache_http1_deliver.c
View file @
03505109
...
...
@@ -318,7 +318,7 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
if
(
req
->
wantbody
&&
!
(
req
->
res_mode
&
(
RES_ESI
|
RES_ESI_CHILD
))
&&
req
->
esi_level
==
0
&&
cache_param
->
http_range_support
&&
http_IsStatus
(
req
->
resp
,
200
))
{
http_SetHeader
(
req
->
resp
,
"Accept-Ranges: bytes"
);
...
...
bin/varnishtest/tests/e00003.vtc
View file @
03505109
...
...
@@ -30,7 +30,7 @@ varnish v1 -vcl+backend {
logexpect l1 -v v1 -g request {
expect 0 1001 Begin "^req .* rxreq"
expect * = ReqAcct "^18 0 18 1
54 75 229
$"
expect * = ReqAcct "^18 0 18 1
76 75 251
$"
expect 0 = End
expect 0 1002 Begin "^bereq "
...
...
@@ -44,7 +44,7 @@ logexpect l1 -v v1 -g request {
expect * = End
expect 0 1005 Begin "^req .* rxreq"
expect * = ReqAcct "^18 0 18 1
59 75 234
$"
expect * = ReqAcct "^18 0 18 1
81 75 256
$"
expect 0 = End
} -start
...
...
bin/varnishtest/tests/l00003.vtc
View file @
03505109
...
...
@@ -48,7 +48,7 @@ varnish v1 -vcl+backend {
logexpect l1 -v v1 -g request {
expect 0 1001 Begin "^req .* rxreq"
expect * = ReqAcct "^18 0 18
71 15 86
$"
expect * = ReqAcct "^18 0 18
93 15 108
$"
expect 0 = End
expect * 1003 Begin "^req .* esi"
expect * = ReqAcct "^0 0 0 0 12 12$"
...
...
@@ -72,5 +72,5 @@ logexpect l1 -wait
varnish v1 -expect s_req_hdrbytes == 18
varnish v1 -expect s_req_bodybytes == 0
varnish v1 -expect s_resp_hdrbytes ==
71
varnish v1 -expect s_resp_hdrbytes ==
93
varnish v1 -expect s_resp_bodybytes == 33
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