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

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 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-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-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
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 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
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 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
I think it is "streaming" although it does use a buffered writer like I mentioned before. Basically, I: generate a line of data, write to the print writer and then repeat (pseudo code): printWriter.write("data"); The PrintWriter flushes itself along the way and I can see the Firefox progress bar

Re: user cancels download attachment

2010-05-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ðavîd, (Wow, that's a lot of accented characters! Congratulations on probably having a lot of forms on the web misinterpret your name! There's more below.) On 5/20/2010 4:07 PM, Caldarale, Charles R wrote: >> From: Ðavîd Låndïs [mailto:dlan...@gmail.

Re: user cancels download attachment

2010-05-20 Thread Jorge Medina
I would be interested on the answer when the server is front-ended with httpd. I currently have a web services application (using SOAP with attachments) and I would also benefit from getting a IOException (like the "Broken pipe") to terminate processing as soon as possible. On Thu, May 20, 2010 a

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 can't answer your question (at least not yet), but

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-ending Tomcat, such as http