[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-dev
Subject:    Re: filter return values
From:       rbb () covalent ! net
Date:       2000-12-31 23:46:30
[Download RAW message or body]


> > What happens when you return the actual HTTP error code.  The way this is
> > supposed to work, is that a filter returns an HTTP error code, and the
> > handler should detect that, and return the same code.  From there, it
> > should work the same way returning an HTTP error from a handler worked in
> > 1.3.
> 
> if i return the error code from the filter callback i still get 'document
> contains no data'.  however, deeper down i can check if the return value
> from ap_pass_brigade() ap_is_HTTP_SERVER_ERROR(), which i guess will have
> to do.  would be nice if filter callbacks could return a server error to
> apache though.  esp. since not all handlers will use ap_pass_brigade(),
> e.g. those that use ap_rwrite(), which doesn't even check the return value
> of ap_pass_brigade().

This is a bug that we will need to fix.  Greg and I are currently
discussing this.

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic