Hmm. It seems possible that deliver_report could fail before generating any response. Thus, we want to test what the situation is, and deliver the error or perform the new "ah, crap. punt" option.
The logic would be like this:
if (!r->sent_bodyct) /* no data sent yet. handle the error normally. */ return dav_handle_err(...)
I wonder if r->sent_bodyct could be 0 and there are data in the output buffers that hasn't yet made it down to ap_http_header_filter... -- justin
