First, thanks for the info.  But I think I framed the question poorly. 
This will solve some of my problems, but if I have a long-running
computation that produces no output until it's done (e.g. long database
query), the query will still run to completion before the servlet can
find out.  I'd like to get interrupted or notified somehow, analogous to
getting a SIGPIPE if I were in a normal UNIX environment.  I suppose I
could rewrite the servlet to send a little bit of whitespace every so
often while it's waiting for the query results, but this seems ugly.  It
would be nice if there were a cleaner way.  There's nothing in the
servlet API that seems to address this.

-Matt

jon * wrote:
> 
> > Is there any way for a servlet to figure out that
> > it's sending data nowhere, or are there any plans for such a feature?
> 
> I believe that it is possible because you will get a IOException if the
> outputstream is closed.
> 
> -jon
> 
> -- --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> READ THE FAQ!!!!     <http://java.apache.org/faq/>
> Archives and Other:  <http://java.apache.org/main/mail.html/>
> Problems?:           [EMAIL PROTECTED]


-- --------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to