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
> 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
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
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
> >>
> >>
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
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)
-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
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
> 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
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
> 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
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
Ð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
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
-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
15 matches
Mail list logo