httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [PATCH] filtering and canned error responses
Date Tue, 05 Sep 2000 15:27:52 GMT
> > An infinite loop.
> > 
> > If the error being returned is 'Internal Server Error' because of
> > some nasty in one of the filters themselves then how does it
> > know not to touch the error document sailing through the
> > chain that will cause yet another error if the same filter kicks
> > in again?
> > 
> > In the case of generating error pages, I think you are always
> > going to need some kind of 'All filters back off this one'
> > flag in the request rec or something so it doesn't get
> > re-filtered ( and possibly re-looped ) as it goes out the door.
> I have actually had more time to think about this whole issue this
> weekend.  Here is my general thought.  We have a great filtering system
> available to us.  Use it.  If we want to generate an error page, then that
> should be a filter.
> ap_send_error_response should basically insert a filter that removes all
> of the content and generates a new error page.  If more content is sent,
> this filter just removes it.
> If handled correctly, this could later be used as a model for doing
> sub-requests and re-directions as filters.

I completely forgot to say this should also avoid the infinite loop
condition, because the module that is causing the error condition will
never actually see the error page.


Ryan Bloom               
406 29th St.
San Francisco, CA 94131

View raw message