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 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 t

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

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 wrote: > On 25/11/2010 11:14, declan harrison wrote: >> On Thu, Nov 25, 2010 at 10:37 AM, Pid 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

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 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 th

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.

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 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 declan harrison
On Thu, Nov 25, 2010 at 10:37 AM, Pid 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 v

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 IOE

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 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 declan harrison
On Thu, Nov 25, 2010 at 9:45 AM, Pid 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 >> BufferedOutputStream(respon

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 wr

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

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 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 o

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 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 probably be replicat

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 ha

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 * wrote: > On 24 Nov 2010, at 18:07, declan harrison 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. > > Which JVM version? java ver

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 Pid *
On 24 Nov 2010, at 18:07, declan harrison 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 Web App in the > main s

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

2010-11-24 Thread declan harrison
Hi This is my first post to tomcat user mailing list. I'm using Tomcat 6.0.24 on Linux RHELS release 5.3 (Tikanga) on a 64 bit OS. I have deployed a Web application within Tomcat. The Web App in the main sends dynamically created video content to a client over the HTTP1.1 Blocking Connector. I