Andrew C. Oliver wrote:
released for a really long time. The reason being is that the servlet
is blocked on writing to the Response output stream. Is there any way
If you can figure out some way to get access to the underlying Socket,
you can call Socket.setSoTimeout() prior to the blocking operation
(write) to set a shorter timeout. However, I can't see any way to get
this from the Servlet API. Maybe there is a way to replace the socket
factory in your servlet engine - you could set the timeout when the
socket is created.
Incidentally, this is one if the problems the NIO APIs were designed to
address (non-blocking I/O)...but I don't see a clear way to integrate this
into servlet containers. The servlet API is built around streams, but
the NIO APIs don't play nice with streams (actually, they don't play at
all, from what I can see).
*********************************
Chris Merrill
[EMAIL PROTECTED]
*********************************
_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org