Commit 255a789d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Rename REQ_BODY_WITH_LEN to REQ_BODY_LENGTH in preparation for merge with BS_*

parent 034abbfd
......@@ -249,7 +249,7 @@ vbf_stp_mkbereq(struct worker *wrk, struct busyobj *bo)
HSH_Ref(bo->bereq_body);
bo->req = NULL;
ObjSetState(bo->wrk, bo->fetch_objcore, BOS_REQ_DONE);
} else if (bo->req->req_body_status != REQ_BODY_WITH_LEN &&
} else if (bo->req->req_body_status != REQ_BODY_LENGTH &&
bo->req->req_body_status != REQ_BODY_WITHOUT_LEN) {
WRONG("Bad req_body_status");
}
......
......@@ -197,7 +197,7 @@ VRB_Iterate(struct worker *wrk, struct vsl_log *vsl,
return (0);
case REQ_BODY_NONE:
return (0);
case REQ_BODY_WITH_LEN:
case REQ_BODY_LENGTH:
case REQ_BODY_WITHOUT_LEN:
break;
case REQ_BODY_TAKEN:
......@@ -212,7 +212,7 @@ VRB_Iterate(struct worker *wrk, struct vsl_log *vsl,
WRONG("Wrong req_body_status in VRB_Iterate()");
}
Lck_Lock(&req->sp->mtx);
if (req->req_body_status == REQ_BODY_WITH_LEN ||
if (req->req_body_status == REQ_BODY_LENGTH ||
req->req_body_status == REQ_BODY_WITHOUT_LEN) {
req->req_body_status = REQ_BODY_TAKEN;
i = 0;
......@@ -254,7 +254,7 @@ VRB_Ignore(struct req *req)
if (req->doclose)
return (0);
if (req->req_body_status == REQ_BODY_WITH_LEN ||
if (req->req_body_status == REQ_BODY_LENGTH ||
req->req_body_status == REQ_BODY_WITHOUT_LEN)
(void)VRB_Iterate(req->wrk, req->vsl, req, httpq_req_body_discard, NULL);
return (0);
......@@ -312,7 +312,7 @@ VRB_Cache(struct req *req, ssize_t maxsize)
case REQ_BODY_NONE:
return (0);
case REQ_BODY_WITHOUT_LEN:
case REQ_BODY_WITH_LEN:
case REQ_BODY_LENGTH:
break;
default:
WRONG("Wrong req_body_status in VRB_Cache()");
......
......@@ -278,7 +278,7 @@ http1_dissect(struct worker *wrk, struct req *req)
if (req->htc->body_status == BS_CHUNKED)
req->req_body_status = REQ_BODY_WITHOUT_LEN;
else if (req->htc->body_status == BS_LENGTH)
req->req_body_status = REQ_BODY_WITH_LEN;
req->req_body_status = REQ_BODY_LENGTH;
else if (req->htc->body_status == BS_NONE)
req->req_body_status = REQ_BODY_NONE;
else if (req->htc->body_status == BS_EOF)
......
......@@ -583,7 +583,7 @@ h2_end_headers(struct worker *wrk, struct h2_sess *h2,
if (!http_GetHdr(req->http, H_Content_Length, NULL))
req->req_body_status = REQ_BODY_WITHOUT_LEN;
else
req->req_body_status = REQ_BODY_WITH_LEN;
req->req_body_status = REQ_BODY_LENGTH;
} else {
assert (req->req_body_status == REQ_BODY_NONE);
if (http_GetContentLength(req->http) > 0)
......
......@@ -33,7 +33,7 @@
REQ_BODY(INIT)
REQ_BODY(WITHOUT_LEN)
REQ_BODY(WITH_LEN)
REQ_BODY(LENGTH)
/* states >= TAKEN imply that no body is to be read */
REQ_BODY(TAKEN)
REQ_BODY(CACHED)
......
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