tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alan leung <chiu0...@yahoo.com>
Subject Re: Servlet --> File --> Web-browser
Date Tue, 01 May 2001 21:27:37 GMT
can any one helps me out?
thanks again.

--- alan leung <chiu03us@yahoo.com> wrote:
> Hi,
> I have a servlet reads a file from FileInputStream
> and
> copy those bytes to ServletOutputStream and send
> back
> to web browser.
> 
> But if user click CANCEL while downloading in
> netscape. i will get an exception in doGet method.
> -->
> IOException in doGet(): java.net.SocketException:
> Connection aborted by peer: socket write error
> 
> if user click CANCEL in IE (Internet Explorer). i
> didn't get any exception print out.
> 
> Both cases is browser connect to servlet engine
> directly (tomcat)
> 
> if browser connects to apache server --> then
> tomcat;
> no exception got caught for netscape and IE if user
> click CANCEL while download. 
> 
> What i think is clicking CANCEL while downloading a
> file would lost the TCP connection without ending
> it.
> which would always rise an IOException right?  Why
> if
> i use apache server w/ tomcat or IE connect to
> tomcat
> directly won't cause IOException in doGet() method?
> 
> thanks.
> 
> 
> 
> __________________________________________________
> 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/

Mime
View raw message