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
287e405a
Commit
287e405a
authored
Sep 11, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate bo->content_length
parent
d2014e93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
5 deletions
+1
-5
cache.h
bin/varnishd/cache/cache.h
+0
-2
cache_busyobj.c
bin/varnishd/cache/cache_busyobj.c
+0
-1
cache_fetch.c
bin/varnishd/cache/cache_fetch.c
+1
-2
No files found.
bin/varnishd/cache/cache.h
View file @
287e405a
...
@@ -517,8 +517,6 @@ struct busyobj {
...
@@ -517,8 +517,6 @@ struct busyobj {
struct
pool_task
fetch_task
;
struct
pool_task
fetch_task
;
ssize_t
content_length
;
enum
sess_close
doclose
;
enum
sess_close
doclose
;
#define BO_FLAG(l, r, w, d) unsigned l:1;
#define BO_FLAG(l, r, w, d) unsigned l:1;
...
...
bin/varnishd/cache/cache_busyobj.c
View file @
287e405a
...
@@ -149,7 +149,6 @@ VBO_GetBusyObj(struct worker *wrk, const struct req *req)
...
@@ -149,7 +149,6 @@ VBO_GetBusyObj(struct worker *wrk, const struct req *req)
VCL_Ref
(
bo
->
vcl
);
VCL_Ref
(
bo
->
vcl
);
bo
->
t_first
=
bo
->
t_prev
=
NAN
;
bo
->
t_first
=
bo
->
t_prev
=
NAN
;
bo
->
content_length
=
-
1
;
bo
->
doclose
=
SC_NULL
;
bo
->
doclose
=
SC_NULL
;
return
(
bo
);
return
(
bo
);
...
...
bin/varnishd/cache/cache_fetch.c
View file @
287e405a
...
@@ -349,7 +349,6 @@ vbf_stp_startfetch(struct worker *wrk, struct busyobj *bo)
...
@@ -349,7 +349,6 @@ vbf_stp_startfetch(struct worker *wrk, struct busyobj *bo)
wrk
->
stats
.
fetch_chunked
++
;
wrk
->
stats
.
fetch_chunked
++
;
}
else
if
(
bo
->
htc
->
body_status
==
BS_LENGTH
)
{
}
else
if
(
bo
->
htc
->
body_status
==
BS_LENGTH
)
{
assert
(
bo
->
htc
->
content_length
>
0
);
assert
(
bo
->
htc
->
content_length
>
0
);
bo
->
content_length
=
bo
->
htc
->
content_length
;
wrk
->
stats
.
fetch_length
++
;
wrk
->
stats
.
fetch_length
++
;
}
else
if
(
bo
->
htc
->
body_status
==
BS_EOF
)
{
}
else
if
(
bo
->
htc
->
body_status
==
BS_EOF
)
{
wrk
->
stats
.
fetch_eof
++
;
wrk
->
stats
.
fetch_eof
++
;
...
@@ -451,7 +450,7 @@ vbf_fetch_body_helper(struct busyobj *bo)
...
@@ -451,7 +450,7 @@ vbf_fetch_body_helper(struct busyobj *bo)
AN
(
vfc
->
vfp_nxt
);
AN
(
vfc
->
vfp_nxt
);
est
=
bo
->
content_length
;
est
=
bo
->
htc
->
content_length
;
if
(
est
<
0
)
if
(
est
<
0
)
est
=
0
;
est
=
0
;
...
...
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