Perhaps ns_atclose might fulfill some of your needs.
Build a preauth filter with a "ns_atclose myproc" statement in it and myproc
will be executed after everything else just before connection close.

On Monday 07 January 2002 11:14 am, you wrote:
> On 2002.01.07, Jim Wilcoxson <[EMAIL PROTECTED]> wrote:
> > Maybe there needs to be a flag in ns_write and friends to indicate
> > that something has been written to the connection.  If not, send
> > out a 500 before closing the connection.
>
> Strangely, while I was implementing some stuff dealing with
> filters, I was really wishing for another kind of filter.
>
> Currently, there's a preauth, postauth, and trace filters.
> I was hoping for a preclose filter, something that gets
> executed after postauth, but before the trace filter --
> basically, something that got executed after all of the
> preauth and postauth filters executed, and the HTML page
> (or ADP page, or whatever) got parsed and served, but
> before the connection was closed (and before the trace
> filters get executed).
>
> This way, if after all the preauth and postauth filters
> and the HTML/ADP pages get served, you'd have the chance
> to append some stuff to the output stream before the
> connection gets closed.  Perhaps this could ALSO be
> used to send an error if nothing had been written to
> the connection up to that point, as well.
>
> I'm not sure how useful, or how difficult, this would
> be to implement, so I haven't bothered looking into it
> yet ...
>
> -- Dossy

Reply via email to