----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Daniel,
You didn't say that you were using the O'Reilly multipart request,
only that you were reading data from a client using read(). If indeed
you are using the O'Reilly class, then you should do what Chris said.
-- Travis
Chris Roberts wrote:
>
> This worked for me.
>
> >From: "Brevsville Administrator" <[EMAIL PROTECTED]>
> >Daniel
> >
> >I haven't tried this, but my first thought would be to put the read in a
> >loop that checks for a null req.
> >
> >You might have a look at the OReilly multipart request which reads the
> >file upload in chunks and checks for a null return before reading the next
> >chunk.
> >
> >hth
> >
> >Chris
> >
> >
> >On Thu, 17 Aug 2000 17:49:59 +0200, Daniel Montalibet wrote:
> >
> > >----------------------------------------------------------------
> > >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!!!
> > >----------------------------------------------------------------
> > >
> > >All,
> > >
> > >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... :-(
> > >
> > >Daniel.
--
--------------------------------------------------------------
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]