Re: Malformed chunked stream

2019-09-24 Thread Dave Thorn
On Tue, Sep 24, 2019 at 11:57:33AM +0100, Mark Thomas wrote: > > One small positive to come of this was that I reviewed Tomcat's chunking > code and made a small optimisation. The code is now a little cleaner, a > little easier to maintain and might even be marginally faster (although > I doubt

Re: Malformed chunked stream

2019-09-24 Thread Mark Thomas
On 24/09/2019 10:02, Dave Thorn wrote: > On Sun, Sep 01, 2019 at 08:51:47AM +, Mark Thomas wrote: >> On August 31, 2019 7:31:12 AM UTC, Dave Thorn wrote: >> >>> There is also a haproxy between client and server. You wouldn't think >>> it goes fiddling around in the middle of a response,

Re: Malformed chunked stream

2019-09-24 Thread Dave Thorn
On Sun, Sep 01, 2019 at 08:51:47AM +, Mark Thomas wrote: > On August 31, 2019 7:31:12 AM UTC, Dave Thorn wrote: > > >There is also a haproxy between client and server. You wouldn't think > >it goes fiddling around in the middle of a response, thought. I'm > >running some tests today that

Re: Malformed chunked stream

2019-09-01 Thread Mark Thomas
On August 31, 2019 7:31:12 AM UTC, Dave Thorn wrote: >On Sat, Aug 31, 2019 at 05:13:06AM +, Mark Thomas wrote: >> On August 30, 2019 8:34:02 PM UTC, Dave Thorn > wrote: >> > >> >That looks, to me, like the stream is missing the [\r][\n] between >the >> >B50 chunk and the 3FC0 count. >> > >>

Re: Malformed chunked stream

2019-08-31 Thread Dave Thorn
On Sat, Aug 31, 2019 at 05:13:06AM +, Mark Thomas wrote: > On August 30, 2019 8:34:02 PM UTC, Dave Thorn wrote: > > > >That looks, to me, like the stream is missing the [\r][\n] between the > >B50 chunk and the 3FC0 count. > > > >I'm not clear on where the responsibilities lie in producing

Re: Malformed chunked stream

2019-08-30 Thread Mark Thomas
On August 30, 2019 8:34:02 PM UTC, Dave Thorn wrote: >I am reading a ~900K XML response from a Tomcat 7.0.76 server, using >Spring RestTemplate and very very intermittently I'm getting a >MalformedChunkCodingException.[1] > >"Unexpected content at the end of chunk". > >I enabled httpclient 'wire'

Malformed chunked stream

2019-08-30 Thread Dave Thorn
I am reading a ~900K XML response from a Tomcat 7.0.76 server, using Spring RestTemplate and very very intermittently I'm getting a MalformedChunkCodingException.[1] "Unexpected content at the end of chunk". I enabled httpclient 'wire' debugging in my client and left it running all day and I