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

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)

Reply via email to