Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-26 Thread declan harrison
On Thu, Nov 25, 2010 at 6:48 PM, Pid p...@pidster.com wrote: On 25/11/2010 17:49, declan harrison wrote: So far you've shown me that you wrap the output stream, and how the write method works. You haven't actually posted the part of the code where you write your bit of the data to the

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-25 Thread Pid
On 24/11/2010 22:11, declan harrison wrote: How are you writing to the output of the response? Im wrapping the response ServletOutputStream in a BufferedOutputStream; Something like this bufOutStream = new BufferedOutputStream(response.getOutputStream(),20480); ... and how are you writing

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-25 Thread declan harrison
On Thu, Nov 25, 2010 at 9:45 AM, Pid p...@pidster.com wrote: On 24/11/2010 22:11, declan harrison wrote: How are you writing to the output of the response? Im wrapping the response ServletOutputStream in a BufferedOutputStream; Something like this bufOutStream = new

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-25 Thread declan harrison
On Wed, Nov 24, 2010 at 10:39 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: declan harrison [mailto:harrison.dec...@gmail.com] Subject: Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked I meant I have local variable

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-25 Thread Pid
On 25/11/2010 10:22, declan harrison wrote: ... and how are you writing to the BufferedOutputStream? So I end up calling this method for most of the writes that are performed for binary IO. @Override public synchronized void write(byte[] b, int off, int len) throws IOException

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-25 Thread declan harrison
On Thu, Nov 25, 2010 at 10:37 AM, Pid p...@pidster.com wrote: On 25/11/2010 10:22, declan harrison wrote: ... and how are you writing to the BufferedOutputStream? So I end up calling this method for most of the writes that are performed for binary IO.     @Override     public synchronized

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-25 Thread Pid
On 25/11/2010 11:14, declan harrison wrote: On Thu, Nov 25, 2010 at 10:37 AM, Pid p...@pidster.com wrote: On 25/11/2010 10:22, declan harrison wrote: ... and how are you writing to the BufferedOutputStream? So I end up calling this method for most of the writes that are performed for binary

RE: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-25 Thread Caldarale, Charles R
From: declan harrison [mailto:harrison.dec...@gmail.com] Subject: Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked it does look like it to me that state is leaking between these two request on this same thread. That hints of a ThreadLocal

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-25 Thread declan harrison
On Thu, Nov 25, 2010 at 3:08 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: declan harrison [mailto:harrison.dec...@gmail.com] Subject: Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked it does look like it to me that state

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-25 Thread declan harrison
On Thu, Nov 25, 2010 at 11:49 AM, Pid p...@pidster.com wrote: On 25/11/2010 11:14, declan harrison wrote: On Thu, Nov 25, 2010 at 10:37 AM, Pid p...@pidster.com wrote: On 25/11/2010 10:22, declan harrison wrote: ... and how are you writing to the BufferedOutputStream? So I end up calling

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-25 Thread Pid
On 25/11/2010 17:49, declan harrison wrote: So far you've shown me that you wrap the output stream, and how the write method works. You haven't actually posted the part of the code where you write your bit of the data to the wrapped output stream. p I just call wrapper.write(buf,

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread Pid *
On 24 Nov 2010, at 18:07, declan harrison harrison.dec...@gmail.com wrote: Hi This is my first post to tomcat user mailing list. Hello. I'm using Tomcat 6.0.24 on Linux RHELS release 5.3 (Tikanga) on a 64 bit OS. Which JVM version? I have deployed a Web application within Tomcat. The

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 11/24/2010 2:32 PM, Pid * wrote: That sounds like the thread is only being reset properly after it's been used a second time. +1 This can probably be replicated in a test by having a dummy servlet simply throw a ClientAbortException (or

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread declan harrison
On Wed, Nov 24, 2010 at 7:32 PM, Pid * p...@pidster.com wrote: On 24 Nov 2010, at 18:07, declan harrison harrison.dec...@gmail.com wrote: Hi This is my first post to tomcat user mailing list. Hello. Hi there I'm using Tomcat 6.0.24 on Linux RHELS  release 5.3 (Tikanga) on a 64 bit OS.

RE: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread Caldarale, Charles R
From: declan harrison [mailto:harrison.dec...@gmail.com] Subject: Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked Do you have any part of the response stored as an instance field in your servlet? Yes I have a reference

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread declan harrison
On Wed, Nov 24, 2010 at 7:59 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 11/24/2010 2:32 PM, Pid * wrote: That sounds like the thread is only being reset properly after it's been used a second time. +1 This can

Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread declan harrison
On Wed, Nov 24, 2010 at 10:23 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: declan harrison [mailto:harrison.dec...@gmail.com] Subject: Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked Do you have any part of the response

RE: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked

2010-11-24 Thread Caldarale, Charles R
From: declan harrison [mailto:harrison.dec...@gmail.com] Subject: Re: Tomcat 6.0.24 - Should send body As Chunked Response but sometimes sends it back Un-Chunked I meant I have local variable that reference the response output stream. Ok, you're off the hook on that one. Anything stored