user cancels download attachment

2010-05-20 Thread Ðavîd Låndïs
Tomcat 6.0.20 Java 1.6.0_20-b02 Linux 2.6.32-22 I have a servlet that writes CSV content to the HTTPServletResponse. It uses Content-disposition of attachment and ContentType text/x-csv. The servlet creates a PrintWriter something like (pseudo code): new PrintWriter(new BufferedWriter(response.g

RE: user cancels download attachment

2010-05-20 Thread Caldarale, Charles R
> From: Ðavîd Låndïs [mailto:dlan...@gmail.com] > Subject: user cancels download attachment > > Tomcat 6.0.20 > Java 1.6.0_20-b02 > Linux 2.6.32-22 I can't answer your question (at least not yet), but one more piece of information is needed: do you have anything front

Re: user cancels download attachment

2010-05-20 Thread Ðavîd Låndïs
It is standalone. Thanks. On Thu, May 20, 2010 at 4:07 PM, Caldarale, Charles R wrote: >> From: Ðavîd Låndïs [mailto:dlan...@gmail.com] >> Subject: user cancels download attachment >> >> Tomcat 6.0.20 >> Java 1.6.0_20-b02 >> Linux 2.6.32-22 > > I ca

Re: user cancels download attachment

2010-05-20 Thread Jorge Medina
y 20, 2010 at 4:21 PM, Ðavîd Låndïs wrote: > It is standalone. Thanks. > > On Thu, May 20, 2010 at 4:07 PM, Caldarale, Charles R > wrote: > >> From: Ðavîd Låndïs [mailto:dlan...@gmail.com] > >> Subject: user cancels download attachment > >> > >>

Re: user cancels download attachment

2010-05-20 Thread Christopher Schultz
dïs [mailto:dlan...@gmail.com] >> Subject: user cancels download attachment >> >> Tomcat 6.0.20 >> Java 1.6.0_20-b02 >> Linux 2.6.32-22 > > I can't answer your question (at least not yet), but one more piece > of information is needed: do you have anythin

Re: user cancels download attachment

2010-05-20 Thread Ðavîd Låndïs
ale, Charles R wrote: >>> From: Ðavîd Låndïs [mailto:dlan...@gmail.com] >>> Subject: user cancels download attachment >>> >>> Tomcat 6.0.20 >>> Java 1.6.0_20-b02 >>> Linux 2.6.32-22 >> >> I can't answer your question (at least not yet)

Re: user cancels download attachment

2010-05-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ðavîd, On 5/20/2010 5:30 PM, Ðavîd Låndïs wrote: > I think it is "streaming" although it does use a buffered writer like > I mentioned before. Sure, but if you use a buffered writer to simply dump a huge byte array, that's not exactly streaming. What

Re: user cancels download attachment

2010-05-20 Thread Ðavîd Låndïs
Thanks again for the info, Chris. Please excuse the formatting, I am attempting to respond inline to the points below. On Thu, May 20, 2010 at 6:16 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ðavîd, > > On 5/20/2010 5:30 PM, Ðavîd Låndïs wrote: >> I think

RE: user cancels download attachment

2010-05-20 Thread Caldarale, Charles R
> From: Ðavîd Låndïs [mailto:dlan...@gmail.com] > Subject: Re: user cancels download attachment > > I was hoping Tomcat would have some way of knowing that > it was cancelled and close it. Look at the API spec for PrintStream: "Methods in this class never throw I/O except

Re: user cancels download attachment

2010-05-20 Thread Ðavîd Låndïs
avîd Låndïs [mailto:dlan...@gmail.com] >> Subject: Re: user cancels download attachment >> >> I was hoping Tomcat would have some way of knowing that >> it was cancelled and close it. > > Look at the API spec for PrintStream: "Methods in this class never throw

RE: user cancels download attachment

2010-05-20 Thread Caldarale, Charles R
> From: Ðavîd Låndïs [mailto:dlan...@gmail.com] > Subject: Re: user cancels download attachment > > I will try to debug deeper down into the platform. What connector are you using? Blocking, NIO, or APR? > I suppose it is possible there is something else > buffering it, bu

Re: user cancels download attachment

2010-05-20 Thread Ðavîd Låndïs
On Thu, May 20, 2010 at 9:51 PM, Caldarale, Charles R wrote: >> From: Ðavîd Låndïs [mailto:dlan...@gmail.com] >> Subject: Re: user cancels download attachment >> >> I will try to debug deeper down into the platform. > > What connector are you using?  Blocking, N

Re: user cancels download attachment

2010-05-21 Thread André Warnier
Ðavîd Låndïs wrote: ... Incidentally, does anyone know what exception is supposed to be thrown when a user cancels the attachment download? I am bit out of my depth here, but presumably when the user does that, the browser closes its (reading) side of the socket. Whatever process is at the ot

Re: user cancels download attachment

2010-05-21 Thread Pid
On 21/05/2010 03:08, Ðavîd Låndïs wrote: > On Thu, May 20, 2010 at 9:51 PM, Caldarale, Charles R > wrote: >>> From: Ðavîd Låndïs [mailto:dlan...@gmail.com] >>> Subject: Re: user cancels download attachment >>> >>> I will try to debug deeper down into

Re: user cancels download attachment

2010-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ðavîd, On 5/20/2010 10:08 PM, Ðavîd Låndïs wrote: > OK I'll investigate a little more at work tomorrow. I'm hoping the > issue isn't that Tomcat is swallowing the exceptions somewhere. Tomcat is very unlikely to swallow such exceptions. > Incidental