httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject Re: ap_core_output_filter returns APR_SUCCESS on error
Date Fri, 25 Aug 2006 21:22:41 GMT

On 08/25/2006 11:08 PM, Joachim Zobel wrote:
> Hi.
> 
> The core output filter is doing the following if the client unexpectedly
> closes the connection:
> 
>   if (rv != APR_SUCCESS) {
>        ap_log_cerror(APLOG_MARK, APLOG_INFO, rv, c,
>                      "core_output_filter: writing data to the network");
> 
>          ... cleanup
> 
>       /* The client has aborted, but the request was successful.We
>        * will report success, and leave it to the access and error
>        * logs to note that the connection was aborted.
>        */
>       return APR_SUCCESS;
>   }
> 
> Unfortunately my upstream filter does not read the logs. How else can I
> find out there was this error from an upstream filter? I am doing a SAX

c->aborted is set to 1 in this case. Just check for it once you return from ap_pass_brigade.

Regards

RĂ¼diger

Mime
View raw message