Commit 78a0ecdc authored by Nils Goroll's avatar Nils Goroll Committed by Lasse Karstensen

VFP_Push: document the place which still need attention for out-of-workspace handling

We'll need to change a couple of signatures in the call paths getting here
to propagate up the failure.
parent af29bc7d
......@@ -272,16 +272,19 @@ V1F_Setup_Fetch(struct vfp_ctx *vfc, struct http_conn *htc)
case BS_EOF:
assert(htc->content_length == -1);
vfe = VFP_Push(vfc, &v1f_eof, 0);
XXXAN(vfe);
vfe->priv2 = 0;
break;
case BS_LENGTH:
assert(htc->content_length > 0);
vfe = VFP_Push(vfc, &v1f_straight, 0);
XXXAN(vfe);
vfe->priv2 = htc->content_length;
break;
case BS_CHUNKED:
assert(htc->content_length == -1);
vfe = VFP_Push(vfc, &v1f_chunked, 0);
XXXAN(vfe);
vfe->priv2 = -1;
break;
default:
......
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