Re: cvs commit: apr-serf/docs notes-filter-chains.txt
Aaron Bannert <[email protected]> Wed, 28 Aug 2002 12:08:59 -0700
| Newsgroups | gmane.comp.apache.apr.serf.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Aug 28, 2002 at 11:45:39AM -0000, [email protected] wrote: > gstein 2002/08/28 04:45:39 > > Added: docs notes-filter-chains.txt > Log: > A transcript of a conversation that Justin and I just had on IRC. This > still needs to be massaged down to its key points. [originally only sent to gstein by accident, this is a resend to the list... stupid reply-to headers... :) ] It's going to take awhile to catch up on all this, but one quick comment: Filter interaction should not think in terms of bytes. The app should not request any thing in terms of "bytes" it should request a type of data. "Give me body data" or "Give me abstract things until one of them can be identifed as a body data thingy" or something along those lines. This rids us of the need to deal with "spillover" or any other buffering problems at the filter level, so we only have to think about it in terms of specifical data types. Only once a filter has received a type of data that it knows about should it inspect that unit, and if it happens to be a type of data that can be thought of in terms of bytes than that's fine, but only at that deeper level. Am I making any sense here? -aaron