httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject what response code filters should return when they see c->aborted?
Date Thu, 11 Dec 2003 18:38:06 GMT
If the connection is aborted filters need to know how to deal with that
situation and not waste resources processing data which is going to be dumped
anyway. It's easy to do by checking c->aborted every so often. The question
is, what's the proper response code should the filter return if it decides not
to process data any longer since it saw c->aborted is true? AP_NOBODY_WROTE?

What's confusing is that it seems that most consumers (not filters) (e.g. in
protocol.c) that call ap_pass_brigade are completely ignoring its response code.

I suppose cleanly aborting the request is at least important for the logging

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

View raw message