----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Thanks a lot Travis!
I'm gonna try this. I wonder how client sessions will be managed if the
client issues a new connection before the timeout... I'll try.
Daniel.
PS: people, I'm sorry but I did not know where to post this question... And
I was suspecting an Http server <--> JServ comm problem. Apologizes again.
>
> 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]
>
>
--
--------------------------------------------------------------
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]