httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Stoddard <>
Subject Re: Sending error responses to the client
Date Mon, 03 Mar 2003 18:05:40 GMT
William A. Rowe, Jr. wrote:
> Filters must use 'the second way'.
> Early hooks (before ap_run_handler()) must use 'the first way'.

Why?  I have a filter using the first way and it appears to work. I can 
dig in the code as well as anyone so don't go to a lot of effort, just 
trying to save some time by mining the knowledge base on list :-)


> I guess handlers do as they will. 
> Bill
> At 10:36 AM 3/3/2003, Bill Stoddard wrote:
>>I see two ways for the server to send an error response to the client.
>>First way:
>>- set r->status
>>- call ap_send_error_response()
>>(see protocol.c for an example)
>>Second way:
>>- call ap_bucket_error_create(r->status)
>>- send the error bucket along with an EOS down the output filter stack
>>Which is the preferred way and why? Seems we should be able to pick one way and use
it consistently.

View raw message