anyone can help?
thanks.
--- tim leung <[EMAIL PROTECTED]> wrote:
> thanks steve,
>
> But I am connect to tomcat 3.2.1 directly (not
> apache
> in midddle). it looks like TCP connection exist even
> i
> click cancel during download until i close IE.
>
> i will get :
> IOException in doGet(): java.net.SocketException:
> Connection reset by peer: socket write error
> when I close IE window.
>
> i am pretty sure tomcat 3.2.1 don't not support
> presistent connection(HTTP/1.1 connection keep
> alive).
> it must be IE didn't close the socket.
>
> If i use apache in between. i will never get an
> exception in servlet. Is that right? what i think
> is
> apache will always buffer the whole file when it get
> some request from client. Is that right? even for
> static content.
>
> But how about for a very big file like 100MB. will
> it
> buffer the whole file too? when user click cancel in
> the very beginning.
>
> thanks.
>
> --- Steve Brunton <[EMAIL PROTECTED]> wrote:
> > On Thu, May 03, 2001, Purple Mutants made tim
> leung
> > write:
> > > yup, you are right william.
> > >
> > > it's not really exception. it's thread's running
> > state
> > > at the time i push Crt+Break.
> > >
> > > One thing i have been stuck for 1/2 month is
> that
> > :
> > >
> > > why the thread still running when i click canel
> on
> > IE?
> > > click cancel in IE (i think) would close the TCP
> > > connection. servlet would konw that in the
> socket
> > > immediately ( this is the case in netscape). and
> > > caught an exception.
> > >
> > > I suspect IE still keeps the TCP connection even
> > after
> > > user click cancel. (that's bit strange idea).
> but
> > > what else can keep the thread in servlet keep
> > running
> > > if the socket is closed? the thread didn't dies
> > if i
> > > make another request, it's still there.
> > >
> >
> >
> > MSIE very loosely honors the HTTP/1.1 spec. If
> your
> > webserver
> > is setup to allow HTTP/1.1 connection with
> > keep-alives then MSIE
> > will keep the connection open even if the user has
> > hit stop. It also
> > does weird things the a keep-alive timeout.
> > You could try forcing the webserver to not allow
> > keep-alives and
> > trying the same test to see if you get an
> exception
> > or not. I don't
> > remember from the start of the thread if you are
> > using one of the apache
> > modules or talking straight to Tomcat.
> >
> > --
> > Steve Brunton <[EMAIL PROTECTED]> Phone:
> > 404-827-2756
> > Chief Engineer Enterprise Systems One CNN
> Center,
> > Atlanta GA
> > CNN Internet Technologies ICBM: 84W 23'
> 45"
> > 33N 45' 29"
> > <*> I see you've set aside this special time to
> > humiliate yourself in public. <*>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/