Re: Feedback about the content processing framework

From: Robert Collins <robert.collins@dont-contact.us>
Date: Wed, 31 Jan 2001 21:09:16 +1100

----- Original Message -----
From: "Moez Mahfoudh" <moez.mahfoudh@imag.fr>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Sent: Wednesday, January 31, 2001 9:05 PM
Subject: Re: Feedback about the content processing framework

> >
> > Currently: The last chunk has len==0, buf==NULL. The flag is defined, but not used all over yet.
> > store a state variable for headers seen, and test for EOF/LASTCHUNK by buf==NULL || flags & FILTER_EOF. That'll cover both bases
> > until I've finished the tidyup.
>
> Sorry for insisting, but in my tests, I cannot see such a behavior. There is no call for my filter function with buf=NULL or
len=0.

How are you inserting the filter into the chain? (Can you mail me your module.c & Makefile.in ?) I need to see where in the chain
you sit to give you a sensible answer.
Are you using a http/1.1 client or 1.0 (ie is chunked encoding on or off?)

And of course.. it might be a bug :-]

> If you want to try it, here is its code:
>
> static void clientFilterDummy(char *buf,size_t len,dlink_list *filter_list,FILTER_list *filters,unsigned int flags,void *data)
> {
> FILTER_list *temp_filter=filters->node.next->data;
>
> debug(1,1)("**** Spying my dummy filter (buf=%x,len=%d,flags=%d\n",buf,len,flags);
> temp_filter->filter(buf,len,filter_list,temp_filter,temp_filter->data);
> }
>
Received on Wed Jan 31 2001 - 03:08:39 MST

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