Commit 287e405a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Eliminate bo->content_length

parent d2014e93
...@@ -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;
......
...@@ -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);
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment