]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Rewrite ap_get_client_block to rely on assumptions that have been
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 17 Jun 2002 05:09:45 +0000 (05:09 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 17 Jun 2002 05:09:45 +0000 (05:09 +0000)
commitb7319396a77943c013eecb58e614c1b0f929f49a
tree07d707a4eae4591c945e29a41ca657e7a678aacc
parentcc5d29c4d0fb0cfa479020683cf7087a2f68cc8a
Rewrite ap_get_client_block to rely on assumptions that have been
solidified after this code was originally written.  Namely:

- AP_MODE_READBYTES will only return a brigade representing AT MOST bytes
  of data.  It can NOT return MORE than requested.
- APR_BLOCK_READ is respected - it is considered a design error of a filter
  if it returns without reading something.
- apr_brigade_flatten is available to do the heavy lifting of the copying
  into a flat buffer (as hinted at by the removed comment).

Tested with httpd-test.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95721 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/http/http_protocol.c