----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
This is not a JServ question, however, you need to do your read() in a
separate thread with a timeout. After the timeout, close the
connection. I suggest examining the AsyncInputStream class described
in the book _Java Threads_ (by Scott Oaks and Henry Wong, ISBN
1-56592-216-6). It is a good starting point.
-- Travis Low
<mailto:[EMAIL PROTECTED]>
<http://dawnstar.org/travis>
Daniel Montalibet wrote:
> Once again I post an email on this list to query your help...
> I'm still facing a major problem to handle client disconnection while my
> servlet reads some data from it (this occurs when uploading data and the
> client cancels the upload). As I told (5 times in this list), I'm not
> notified on servlet side that the connection has been closed by the client,
> this blocking my servlet on a read() call.
>
> What I need is, this time, just have a (or more) response(s)... please....
> Am I the only one that face this trouble ? Please... respond... yes, no or
> don't know...
>
> Sorry to bother you this probably stupid problem... but I don't understand
> it... so can't try to find a fix... :-(
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]