httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <>
Subject Re: should input filter return the exact amount of bytes asked for?
Date Thu, 13 Nov 2003 09:01:44 GMT
--On Thursday, November 13, 2003 12:38 AM -0800 Stas Bekman <> 

> Great. Where this should be documented? In the ap_get_brigade .h?

It's already in util_filters.h.  Read the documentation for ap_input_mode_t:

    /** The filter should return at most readbytes data. */

> right? Or how otherwise would you explain the assertion:

If using APR_BLOCK_READ, it's illegal to return 0 bytes with AP_MODE_READBYTES 
- that is what this assert is checking for in maintainer mode (this was a 
troublesome assert at one point).  It's the same expectation as doing a 
blocking socking read() - blocking reads shouldn't return until something is 
returned.  -- justin

View raw message