Re: Feedback about the content processing framework

From: Moez Mahfoudh <moez.mahfoudh@dont-contact.us>
Date: Wed, 31 Jan 2001 10:53:28 +0100

Robert Collins wrote:

> Nearly forgot a point...
>
> ----- Original Message -----
> From: "Robert Collins" <robert.collins@itdomain.com.au>
> To: "Moez Mahfoudh" <moez.mahfoudh@imag.fr>; "Squid Dev" <squid-dev@squid-cache.org>
> Sent: Wednesday, January 31, 2001 8:39 PM
> Subject: Re: Feedback about the content processing framework
>
> >
> >
> > At the moment, the API rule is that the first buffer will always be the headers, with no body.
> > There is a flag FILTER_EOF which matches your CP_LAST_CHUNK.
> >
>
> Currently:
> A filter MUST NOT call the next filter with buf=NULL, len=0 except when it has reached EOF.
> A filter MUST call the next filter with buf=NULL len=0 when it has reached EOF (ie after flushing it's buffers).

I've written a dummy filter which only act as a spy and dumps the len and the flags before sending buf unchanged to the next
filter on the chain. All I notice is that there is a call to filter for the headers, then there are one or many calls to the
filter, but flags is still always 0 and there is no way to distinguish the last chunk....

--Moez
Received on Wed Jan 31 2001 - 02:53:35 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:26 MST