> On Thursday, April 25, 2002, at 03:27  PM, Justin Erenkrantz wrote:
>
> > On Thu, Apr 25, 2002 at 04:39:18PM -0400, Bill Stoddard wrote:
> >>> From http_protocol.c...
> >>
> >> * 1. Call setup_client_block() near the beginning of the request
> >>  *    handler. This will set up all the necessary properties, and will
> >>  *    return either OK, or an error code. If the latter, the module
> >> should
> >>  *    return that error code. The second parameter selects the policy to
> >>  *    apply if the request message indicates a body, and how a chunked
> >>  *    transfer-coding should be interpreted. Choose one of
> >>  *
> >>  *    REQUEST_NO_BODY          Send 413 error if message has any body
> >>  *    REQUEST_CHUNKED_ERROR    Send 411 error if body without
> >> Content-Length
> >>  *    REQUEST_CHUNKED_DECHUNK  If chunked, remove the chunks for me.
> >>  *
> >>  *    In order to use the last two options, the caller MUST provide a
> >> buffer
> >>  *    large enough to hold a chunk-size line, including any extensions.
> >>  *
> >>
> >> Anyone know off the top of their head know what the last sentence really
> >> means? In 1.3 and
> >> 2.0?
> >
> It means that the buffer passed for the later get_client_block calls
> must be large enough to handle the chunk-size integer in character form,
> since the parser will fail if it has to stop in mid-read of the integer
> (not mid-read of the data within the chunk).  I don't know if it still
> applies to 2.0.

I didn't know what "chunk-size line" was. Now that I know what it means, the comment 
makes
perfect sense. Definitely an edge case. Thanks for explaining.

Bill


Reply via email to