Re: Can We Disable Chunked Encoding?

2023-07-24 Thread Terence M. Bandoian
in a message to identify the thread? Check the message source for headers identifying the thread. -Terence Bandoian -Original Message- From: Mark Thomas Sent: Thursday, July 6, 2023 3:13 AM To:users@tomcat.apache.org Subject: Re: Can We Disable Chunked Encoding? Please don't hijack

RE: Can We Disable Chunked Encoding?

2023-07-24 Thread Eric Robinson
Original Message- > From: Mark Thomas > Sent: Thursday, July 6, 2023 3:13 AM > To: users@tomcat.apache.org > Subject: Re: Can We Disable Chunked Encoding? > > Please don't hijack threads by replying to a previous message and changing > the subject. Start a new thread by

Re: Can We Disable Chunked Encoding?

2023-07-06 Thread Mark Thomas
d requests where the response comes back with duplicate chunked encoding headers: [Response] HTTP/1.1 200 Strict-Transport-Security: max-age=86400; includeSubDomains; Cache-Control: no-cache,no-store isAuthenticated: true X-FRAME-OPTIONS: SAMEORIGIN Transfer-Encoding: chunked <<&

Can We Disable Chunked Encoding?

2023-07-05 Thread Eric Robinson
We've been seeing problems with failed requests where the response comes back with duplicate chunked encoding headers: [Response] HTTP/1.1 200 Strict-Transport-Security: max-age=86400; includeSubDomains; Cache-Control: no-cache,no-store isAuthenticated: true X-FRAME-OPTIONS: SAMEORIGIN Tra

Triggering chunked encoding from PHP client

2017-02-03 Thread Christopher Schultz
g for the keep-alive timeout (5s) before completing. When I connect using a Java client, I can see that Tomcat (through httpd) is using chunked encoding: DEBUG: Request properties: DEBUG: Accept-Charset: UTF-8, ISO-8859-1, * DEBUG: Cache-Control: private, no-cache, no-store, no-transform DEBUG:

Re: Tomcat 8 Chunked Encoding

2016-02-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Theo, On 2/8/16 10:17 AM, Theo Sweeny wrote: > Hello All - I'm running Tomcat 8.0.21 on Linux 64x and there is a > recent issue where clients making requests and declaring the header > - Transfer-Encoding:chunked, have their connections hang, with no

Tomcat 8 Chunked Encoding

2016-02-08 Thread Theo Sweeny
Hello All - I'm running Tomcat 8.0.21 on Linux 64x and there is a recent issue where clients making requests and declaring the header - Transfer-Encoding:chunked, have their connections hang, with no obvious leads in the logs. I'm aware that up to version 8.0.9 there was a Tomcat vulnerability

RE: Chunked encoding bug in tomcat embedded/spring MVC

2015-02-19 Thread andrew-c.brown
> We have a Jetty 9.2.7 async reverse proxy. It always sends back to > > > the servers behind using chunked encoding. > > > > > > We have backend servers built around embedded 7.0.23 (also tested > > > the latest 7.0.59). > > > > > > Jetty is

RE: Chunked encoding bug in tomcat embedded/spring MVC

2015-02-19 Thread andrew-c.brown
c reverse proxy. It always sends back to the > > servers behind using chunked encoding. > > > > We have backend servers built around embedded 7.0.23 (also tested the > > latest 7.0.59). > > > > Jetty is configured to make SSL connections to these servers

Re: Chunked encoding bug in tomcat embedded/spring MVC

2015-02-19 Thread Mark Thomas
On 19/02/2015 13:05, andrew-c.br...@ubs.com wrote: > Not sure whether the responsibility lies here or with spring so I > thought I'd ask here first. Here's the scenario. > > We have a Jetty 9.2.7 async reverse proxy. It always sends back to the > servers behind using

Chunked encoding bug in tomcat embedded/spring MVC

2015-02-19 Thread andrew-c.brown
Not sure whether the responsibility lies here or with spring so I thought I'd ask here first. Here's the scenario. We have a Jetty 9.2.7 async reverse proxy. It always sends back to the servers behind using chunked encoding. We have backend servers built around embedded 7.0.23 (also

Re: chunked encoding

2012-03-26 Thread Rainer Jung
On 25.03.2012 23:55, Alex Samad - Yieldbroker wrote: -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Monday, 26 March 2012 8:47 AM To: Tomcat Users List Subject: Re: chunked encoding On 25/03/2012 08:54, Alex Samad - Yieldbroker wrote: [snip] 1. http

Re: chunked encoding

2012-03-26 Thread Pid
On 25/03/2012 22:55, Alex Samad - Yieldbroker wrote: > > >> -Original Message- >> From: Pid [mailto:p...@pidster.com] >> Sent: Monday, 26 March 2012 8:47 AM >> To: Tomcat Users List >> Subject: Re: chunked encoding >> >> On 25/03/2012

RE: chunked encoding

2012-03-25 Thread Alex Samad - Yieldbroker
> -Original Message- > From: Pid [mailto:p...@pidster.com] > Sent: Monday, 26 March 2012 8:47 AM > To: Tomcat Users List > Subject: Re: chunked encoding > > On 25/03/2012 08:54, Alex Samad - Yieldbroker wrote: > > [snip] > > > >

Re: chunked encoding

2012-03-25 Thread Pid
On 25/03/2012 08:54, Alex Samad - Yieldbroker wrote: > [snip] > >> >> 1. http://en.wikipedia.org/wiki/Chunked_transfer_encoding >> 2. RFC 2616 (the specification of HTTP/1.1 protocol) > Thanks, I had also hoped to get a bit of debate on the !experimental! nature > of it in the connector What ma

RE: chunked encoding

2012-03-25 Thread Alex Samad - Yieldbroker
[snip] > > 1. http://en.wikipedia.org/wiki/Chunked_transfer_encoding > 2. RFC 2616 (the specification of HTTP/1.1 protocol) Thanks, I had also hoped to get a bit of debate on the !experimental! nature of it in the connector How does it affect compression. So I presume the chunking is between

Re: chunked encoding

2012-03-23 Thread Chema
2012/3/23 Caldarale, Charles R : >> From: Chema [mailto:demablo...@gmail.com] >> Subject: Re: chunked encoding > >> But, if I'm not wrong , chunks messages belong application layer, so >> when servers pass them to TCP/IP stack , they are different messages. > >

Re: chunked encoding

2012-03-23 Thread Chema
> > TCP packets are numbered (by TCP itself). Thus chunks are ordered as well. > So, chunks aren't sent on the same time, but they are sent by the same TCP connection . In this case, it has sense for me: a stream of chunks . Thanks -

RE: chunked encoding

2012-03-23 Thread Caldarale, Charles R
> From: Chema [mailto:demablo...@gmail.com] > Subject: Re: chunked encoding > But, if I'm not wrong , chunks messages belong application layer, so > when servers pass them to TCP/IP stack , they are different messages. TCP/IP knows nothing about "messages", only abo

Re: chunked encoding

2012-03-23 Thread Konstantin Kolinko
2012/3/24 Chema : >> The server application must pass the chunks to its outbound TCP/IP stack in >> order, so normal TCP sequencing takes care of it. >> > > Thanks > But, if I'm not wrong , chunks messages belong application layer, so > when servers pass them to TCP/IP stack , they are different m

Re: chunked encoding

2012-03-23 Thread Chema
> The server application must pass the chunks to its outbound TCP/IP stack in > order, so normal TCP sequencing takes care of it. > Thanks But, if I'm not wrong , chunks messages belong application layer, so when servers pass them to TCP/IP stack , they are different messages. Do it by same conne

RE: chunked encoding

2012-03-23 Thread Caldarale, Charles R
> From: Chema [mailto:demablo...@gmail.com] > Subject: Re: chunked encoding > How does web browser know what is the right order of the chunks ? The order they are passed to the client by the client's inbound TCP/IP stack is the correct order. > But when server sends response

Re: chunked encoding

2012-03-23 Thread Chema
> 1. http://en.wikipedia.org/wiki/Chunked_transfer_encoding > 2. RFC 2616 (the specification of HTTP/1.1 protocol) One question How does web browser know what is the right order of the chunks ? When server waits for generating the whole response, I understand that transmission can rely on TCP and

Re: chunked encoding

2012-03-22 Thread Konstantin Kolinko
2012/3/23 Alex Samad - Yieldbroker : > Hi > > I saw a thread earlier about chunked encoding and why > a) it might be better to use that > b) that it is not experimental any more > > > Can somebody explain what it is, why it might be better and maybe some pro's > an

chunked encoding

2012-03-22 Thread Alex Samad - Yieldbroker
Hi I saw a thread earlier about chunked encoding and why a) it might be better to use that b) that it is not experimental any more Can somebody explain what it is, why it might be better and maybe some pro's and con's and how not experimental is it. Even some pointers to papers, wi

Re: Chunked encoding not terminated with native library

2011-03-13 Thread Chris Dumoulin
ding the header: "Transfer-Encoding: chunked" > >> 2. I've also tried using close() instead of flush() and I've seen the > >> same chunked encoding. > >> 3. The nginx reverse proxying with the HttpProxyModule only supports > >> HTTP/1.0 accord

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/11/2011 4:45 PM, André Warnier wrote: > Chris wrote: >> 1. Yes, tomcat is sending the header: "Transfer-Encoding: chunked" >> 2. I've also tried using close() instead of flush() and I've seen the >&g

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Christopher Schultz
ng close() instead of flush() and I've seen the same > chunked encoding. Why are you doing either of those things? Tomcat can properly flush and close the response stream as necessary. It also makes your code simpler. > 3. The nginx reverse proxying with the HttpProxyModule only suppo

Re: Chunked encoding not terminated with native library

2011-03-11 Thread André Warnier
Chris wrote: 1. Yes, tomcat is sending the header: "Transfer-Encoding: chunked" 2. I've also tried using close() instead of flush() and I've seen the same chunked encoding. 3. The nginx reverse proxying with the HttpProxyModule only supports HTTP/1.0 according to the &qu

Chunked encoding extensions

2011-03-11 Thread chris
Hi folks I am looking information on how to extend the tomcat chunked encoding functionality. >From looking at the code I have found ChunkedInputFilter.java and ChunkedOutputFilter.java, these appear to be the filters responsible. From what I can see they are invoked depending on whether

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Chris
1. Yes, tomcat is sending the header: "Transfer-Encoding: chunked" 2. I've also tried using close() instead of flush() and I've seen the same chunked encoding. 3. The nginx reverse proxying with the HttpProxyModule only supports HTTP/1.0 according to the "Syn

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Christopher Schultz
> - The difference when using libtcnative is that the connection isn't > terminated after the response is sent. Good catch with the HTTP 1.0 versus 1.1. I'm not exactly an expert at HTTP spec and compliance, but I'm pretty sure that the following are true: 1. HTTP 1.0 does no

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Chris
t; > > > Thanks, > > Chris > > > > On March 9, 2011 04:56:22 pm Mark Thomas wrote: > > > On 09/03/2011 21:49, Chris wrote: > > > > Hi, > > > > I'm using Tomcat 7.0.8 on Ubuntu 10.10. > > > > > > > > When us

Re: Chunked encoding not terminated with native library

2011-03-10 Thread Chris
mas wrote: > > On 09/03/2011 21:49, Chris wrote: > > > Hi, > > > I'm using Tomcat 7.0.8 on Ubuntu 10.10. > > > > > > When using the APR based Tomcat Native Library (libtcnative), responses > > > from Tomcat are being sent with a chunked

Re: Chunked encoding not terminated with native library

2011-03-10 Thread Chris
using the native library. Any ideas? Thanks, Chris On March 9, 2011 04:56:22 pm Mark Thomas wrote: > On 09/03/2011 21:49, Chris wrote: > > Hi, > > I'm using Tomcat 7.0.8 on Ubuntu 10.10. > > > > When using the APR based Tomcat Native Library (libtcnative), responses

Re: Chunked encoding not terminated with native library

2011-03-09 Thread Mark Thomas
On 09/03/2011 21:49, Chris wrote: > Hi, > I'm using Tomcat 7.0.8 on Ubuntu 10.10. > > When using the APR based Tomcat Native Library (libtcnative), responses from > Tomcat are being sent with a chunked encoding, but the "0" terminating the > chunked response

Chunked encoding not terminated with native library

2011-03-09 Thread Chris
Hi, I'm using Tomcat 7.0.8 on Ubuntu 10.10. When using the APR based Tomcat Native Library (libtcnative), responses from Tomcat are being sent with a chunked encoding, but the "0" terminating the chunked response isn't sent until exactly 1 minute later. The response is

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread ilya goberman
Got it, thanks > Date: Thu, 6 Jan 2011 16:34:40 -0500 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: How to disable chunked encoding for the Http11NioProtocol > connector. > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ilya, On 1/6/2011 4:17 PM, ilya goberman wrote: > OK. All I wanted to say is that disabling keepAlive across the board > is not necessary. Nobody is suggesting that. > If keepAlive can be applies to a single response > (and to be honest I am not sur

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread ilya goberman
: maxKeepAliveRequests="1" in server.xml > Date: Thu, 6 Jan 2011 16:08:36 -0500 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: How to disable chunked encoding for the Http11NioProtocol > connector. > > -BEGIN PGP SIGNED MESSAGE- > Hash: S

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread Christopher Schultz
nection: close" (which disables keep-alive) and then the configuration Mark proposed causes chunked encoding to be avoided. > So if it is > request for a web page, using keepAlive is fine. Now in order to > disable chunked encoding for a particular response, I would propose > that

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread ilya goberman
it is request for a web page, using keepAlive is fine. Now in order to disable chunked encoding for a particular response, I would propose that a developer would set "Connection:close" header. Using connection "close" implies that closing the connection indicates the end of respo

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 1/5/2011 5:13 PM, André Warnier wrote: > 4.3 Message Body > ... > Transfer-Encoding is a property of the message, not of the > entity, and thus MAY be added or removed by any application along the > request/response chain. Maybe the OP shou

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ilya, On 1/5/2011 4:29 PM, ilya goberman wrote: > I was thinking more about it. What if Tomcat disables chunked > encoding if response contains "Connection: close" header. I think that's what Mark has suggested several times, no

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
This is getting philosophical. "spec-respectful" does not mean it has to support only one valid protocol out of 2. If both protocol A (chunked-encoding) and B (no chunked encoding) is allowed, why not give an ability to use whatever user prefers. As far as "sputnik" exa

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread André Warnier
Correct me if I am wrong, but it seems to me that both in the case of this post, and another simultaneous one entitled "Tomcat and HTTP chunk extensions", the OP's are trying to use HTTP in a way that is not really part of the protocol design. The transfer-encoding is not supposed to be something

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread André Warnier
ilya goberman wrote: I was thinking more about it. What if Tomcat disables chunked encoding if response contains "Connection: close" header. So in order to disable the encoding the Tomcat application will have to set just one response header. I think it is a reasonable enhancement

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
I was thinking more about it. What if Tomcat disables chunked encoding if response contains "Connection: close" header. So in order to disable the encoding the Tomcat application will have to set just one response header. I think it is a reasonable enhancement to do. If "Connec

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
OK, it is fair, thanks. > Date: Wed, 5 Jan 2011 17:54:53 + > From: ma...@apache.org > To: users@tomcat.apache.org > Subject: Re: How to disable chunked encoding for the Http11NioProtocol > connector. > > On 05/01/2011 17:43, ilya goberman wrote: > > > > M

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread Mark Thomas
nd is not intended for more general discussion. Mark > Thanks > >> Date: Wed, 5 Jan 2011 16:38:20 + >> From: ma...@apache.org >> To: users@tomcat.apache.org >> Subject: Re: How to disable chunked encoding for the Http11NioProtocol >> connector. >&g

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
Mark, 1) TCP/IP overhad? Not sure why you got this involved. It applies for both chunked and "normal" encoding. Certainly, TCP/IP packets can span across multiple chunks or one chunk can be split into multiple packets. Or maybe you are implying that chunked encoding will generate mo

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread Mark Thomas
On 05/01/2011 15:29, ilya goberman wrote: > > Mark, overhead of chunked encoding can be significant. My typical message is > about 50 bytes and chunked encoding takes 6 bytes per message: about 12%. I > use JSON protocol that is already compressed (the way JSON can be compresse

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
I see your point. But most clients will keep the application open for hours, so bandwidth saving may be more important than keep-alive. I think disabling chunked encoding is appropriate for the "long running" connections. Unfortunately, some browsers/ mobile devices have bugs assoc

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread Ronald Klop
, overhead of chunked encoding can be significant. My typical message is about 50 bytes and chunked encoding takes 6 bytes per message: about 12%. I use JSON protocol that is already compressed (the way JSON can be compressed). Using "Connection: close" with "Content-Length&quo

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread ilya goberman
Mark, overhead of chunked encoding can be significant. My typical message is about 50 bytes and chunked encoding takes 6 bytes per message: about 12%. I use JSON protocol that is already compressed (the way JSON can be compressed). Using "Connection: close" with "Content

Re: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-04 Thread Mark Thomas
On 05/01/2011 05:04, ilya goberman wrote: > > Hi, > I use NIO HTTP Tomcat connector org.apache.coyote.Http11NioProtocol to > implement Comet streaming to browsers and mobile devices. > > I would like to disable HTTP response chunked encoding to reduce bandwidth. How significa

How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-04 Thread ilya goberman
Hi, I use NIO HTTP Tomcat connector org.apache.coyote.Http11NioProtocol to implement Comet streaming to browsers and mobile devices. I would like to disable HTTP response chunked encoding to reduce bandwidth. The response will have header "Connection: close" with "Content

Re: IIS isapi_redirect.dll chunked encoding option

2009-09-03 Thread Rainer Jung
ly having it in a separate binary will still prevent >> most people to use it, so it might still not be used broadly out in the >> field. >> >> At least we are not aware of any problem with the chunked encoding code. >> >> Regards, >> >> Rainer

Re: IIS isapi_redirect.dll chunked encoding option

2009-09-02 Thread Andy Wang
still not be used broadly out in the field. At least we are not aware of any problem with the chunked encoding code. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail

Re: IIS isapi_redirect.dll chunked encoding option

2009-09-02 Thread Rainer Jung
o the response is just a little short of what's to be expected. > > One thing we noticed was setting enable_chunked_encoding (with a > redirectory built for chunked encoding of course) made everything work > fine so I wanted to get a feel for just how experimental this really

Re: IIS isapi_redirect.dll chunked encoding option

2009-08-21 Thread Andy Wang
Sorry, forgot to mention that. We're at the latest and greatest tomcat-connector version: 1.2.28. Thanks, Andy Peter Crowther wrote: 2009/8/21 Andy Wang : What are the general thoughts on the stability of the enable_chunked_encoding option for the IIS isapi redirector for tomcat and IIS?

Re: IIS isapi_redirect.dll chunked encoding option

2009-08-21 Thread Peter Crowther
2009/8/21 Andy Wang : > What are the general thoughts on the stability of the > enable_chunked_encoding option for the IIS isapi redirector for tomcat and > IIS? I suspect it depends on the version ;-). What are you using? - Peter

IIS isapi_redirect.dll chunked encoding option

2009-08-21 Thread Andy Wang
we noticed was setting enable_chunked_encoding (with a redirectory built for chunked encoding of course) made everything work fine so I wanted to get a feel for just how experimental this really is and what the general consensus is on it's stabi

RE: chunked encoding

2009-07-15 Thread Anthony J. Biacco
> > The real "culprit" here for your chunked encoding and lack of > content-length header is mod_deflate (as Rainer indicated). > It has to do that, because it compresses the response on-the-fly, and > does not know the compressed response size in advance. > Which

Re: chunked encoding

2009-07-15 Thread André Warnier
ehind. It just passes a request to mod_jk, and gets a response in return. The real "culprit" here for your chunked encoding and lack of content-length header is mod_deflate (as Rainer indicated). It has to do that, because it compresses the response on-the-fly, and does not know the co

Re: chunked encoding

2009-07-15 Thread Anthony J. Biacco
ppdata.de] > Sent: Friday, June 12, 2009 3:44 AM > To: Tomcat Users List > Subject: Re: chunked encoding > > On 12.06.2009 10:43, Markus Schönhaber wrote: > > Anthony J. Biacco: > > > >> Hence the idea about downgrading to http 1.0. But that doesn't get > me

Re: chunked encoding

2009-07-14 Thread André Warnier
ction with chunked encoding (where each chunk indicates a length, and there is a last chunk of 0 length) - or a connection closing at the end of the response body, with or without a content-length header (kind of, without is in that case tolerated) Where this all leaves your problem, I don&#x

RE: chunked encoding

2009-07-14 Thread charliehnabble
Caldarale, Charles R wrote: > >> From: charliehnabble [mailto:nab...@hand-family.org] >> Subject: Re: chunked encoding >> >> Excuse me, by "packet" I meant IP datagram. > > Just a terminology nit: "datagram" normally refers to

Re: chunked encoding

2009-07-14 Thread charliehnabble
awarnier wrote: > > Caldarale, Charles R wrote: >>> From: charliehnabble [mailto:nab...@hand-family.org] >>> Subject: Re: chunked encoding >>> >>> Excuse me, by "packet" I meant IP datagram. >> >> Just a terminology nit: "d

Re: chunked encoding

2009-07-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charlie, On 7/14/2009 9:11 AM, charliehnabble wrote: > See, there's a router in the > path that splits my POST into two IP datagrams, one containing the http > header and one contining the http payload (an xml message). It also adds > a "connection:cl

Re: chunked encoding

2009-07-14 Thread André Warnier
Caldarale, Charles R wrote: From: charliehnabble [mailto:nab...@hand-family.org] Subject: Re: chunked encoding Excuse me, by "packet" I meant IP datagram. Just a terminology nit: "datagram" normally refers to a UDP packet, and we're using TCP here. I'll add a

RE: chunked encoding

2009-07-14 Thread Caldarale, Charles R
> From: charliehnabble [mailto:nab...@hand-family.org] > Subject: Re: chunked encoding > > Excuse me, by "packet" I meant IP datagram. Just a terminology nit: "datagram" normally refers to a UDP packet, and we're using TCP here. - Chuck THIS COMMUNIC

Re: chunked encoding

2009-07-14 Thread charliehnabble
TW, Tomcat also doesn't send a content-length header, so if it's not chunked I don't know how long the message is. -- View this message in context: http://www.nabble.com/chunked-encoding-tp23986311p24479138.html Sent from the Tomcat - User mailing list archive at Nabble.com.

Re: chunked encoding

2009-07-13 Thread André Warnier
charliehnabble wrote: I debated putting this in a separate thread, but there seems to be so much expertise focused on this thread: What if I WANT chunked? I have a device that sends http POST header and xml request payload in one packet. Tomcat responds chunked. However when an intervening rout

RE: chunked encoding

2009-07-13 Thread charliehnabble
the http POST header and xml request into two packets, Tomcat responds non-chunked. My device wants chunked response. Any way to force Tomcat to respond chunked? -- View this message in context: http://www.nabble.com/chunked-encoding-tp23986311p24469028.html Sent from the Tomcat - User mailing list

RE: chunked encoding

2009-06-15 Thread Martin Gainty
mg>(hopefully) brief response > Date: Mon, 15 Jun 2009 12:22:28 -0400 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: chunked encoding > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Martin, > > On 6/13/2009 8:57

Re: chunked encoding

2009-06-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 6/13/2009 8:57 PM, Martin Gainty wrote: > how do you accomodate multi-mb size files? You do one of the following: 1. Use some means to determine the file size a priori (like using a static file, but in a database, so you can ask the db

RE: chunked encoding

2009-06-13 Thread Martin Gainty
rmation seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > To: users@tomcat.apache.org > From: wbar...@wilshire

Re: chunked encoding

2009-06-13 Thread Bill Barker
"Christopher Schultz" wrote in message news:4a32c4e3.6060...@christopherschultz.net... > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Anthony, > > On 6/12/2009 1:47 PM, Anthony J. Biacco wrote: >> Well, they used to be static JS files, then we decide we wanted more >> flexibility in the c

RE: chunked encoding

2009-06-13 Thread Anthony J. Biacco
>> >> Yes, and I think that with keep- >>alive off, apache should not chunk >>(or at least give the option to) since it knows I am closing the >>connection >>right after the response is finished. >I suggest using the environment >variables downgrade-1.0 and >nokeepalive, >maybe also no-

Re: chunked encoding

2009-06-13 Thread Rainer Jung
On 13.06.2009 14:51, Rainer Jung wrote: > On 12.06.2009 17:48, Anthony J. Biacco wrote: >>> Rainer Jung: >>> On 12.06.2009 10:43, Markus Schönhaber wrote: > No, it's not strange at all. If the length of the response body is >>> not > known when the response headers are sent, you obviou

Re: chunked encoding

2009-06-13 Thread Rainer Jung
On 12.06.2009 17:48, Anthony J. Biacco wrote: >> Rainer Jung: >> >>> On 12.06.2009 10:43, Markus Schönhaber wrote: No, it's not strange at all. If the length of the response body is >> not known when the response headers are sent, you obviously can't add a Content-Length header. That

Re: chunked encoding

2009-06-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, On 6/12/2009 1:47 PM, Anthony J. Biacco wrote: > Well, they used to be static JS files, then we decide we wanted more > flexibility in the content that went into them, so we stuck them in a > database and decided to generate them as needed.

RE: chunked encoding

2009-06-12 Thread Anthony J. Biacco
could do at > the Apache level, before proxying to Tomcat. > I am wondering about possible side-effects though. The chunked > encoding > is probably not the only difference between 1.0 and 1.1. For example, > if > your Tomcat has Virtual Hosts, it may be an issue. > Yeah, I d

RE: chunked encoding

2009-06-12 Thread Anthony J. Biacco
content of fixed length > to chunked encoding, because in general (not small content) it does not > know the final length in advance. mod_deflate streams, i.e. it doesn't > first read the full response and then compresses. > Yes, I am using mod_deflate. It doesn't set the c

RE: chunked encoding

2009-06-12 Thread Anthony J. Biacco
> > > - the first-choice solution would be to have the CDN fix their > software, > > or select another CDN which can handle chunked content. > > I agree. > And you know how easy that will be :-) > > - the second-best would be : > > (presuming the OP knows at some point the real size of the dat

RE: chunked encoding

2009-06-12 Thread Anthony J. Biacco
> > Rainer Jung: > > > On 12.06.2009 10:43, Markus Schönhaber wrote: > > >> No, it's not strange at all. If the length of the response body is > not > >> known when the response headers are sent, you obviously can't add a > >> Content-Length header. That has nothing to do with the HTTP version >

Re: chunked encoding

2009-06-12 Thread Markus Schönhaber
André Warnier: > In summary thus : > > - making the request be HTTP 1.0, no matter how it's done, is not going > to magically make Tomcat send the response in one chunk nor add a > Content-Length header. Exactly. > (it may just /prevent/ it from adding a "Content-transfer-encoding: > chunked

Re: chunked encoding

2009-06-12 Thread André Warnier
Markus Schönhaber wrote: Rainer Jung: On 12.06.2009 10:43, Markus Schönhaber wrote: No, it's not strange at all. If the length of the response body is not known when the response headers are sent, you obviously can't add a Content-Length header. That has nothing to do with the HTTP version u

Re: chunked encoding

2009-06-12 Thread Markus Schönhaber
Rainer Jung: > On 12.06.2009 10:43, Markus Schönhaber wrote: >> No, it's not strange at all. If the length of the response body is not >> known when the response headers are sent, you obviously can't add a >> Content-Length header. That has nothing to do with the HTTP version used. > > ... true,

Re: chunked encoding

2009-06-12 Thread Rainer Jung
ling content of unknown length. BTW: IIRC, the OP mentioned mod_deflate compression. It comes last in the response handling. I'm not totally sure, how mod_deflate changes the headers (whether content-length is for the uncompressed or compressed size), but I expect mod_deflate to also change content

Re: chunked encoding

2009-06-12 Thread Markus Schönhaber
Anthony J. Biacco: > Hence the idea about downgrading to http 1.0. But that doesn't get me > the content length header still (which in itself is strange), No, it's not strange at all. If the length of the response body is not known when the response headers are sent, you obviously can't add a Con

Re: chunked encoding

2009-06-11 Thread Bill Barker
"André Warnier" wrote in message news:4a317d8d.3060...@ice-sa.com... > Anthony J. Biacco wrote: >> No dice. I tried a bufferSize of 16384 and an 11K response still got >> chunked. Even tried using packetSize and max_packet_size (mod_jk). >> > I think we need Rainer here. > No, the various AJP

Re: chunked encoding

2009-06-11 Thread André Warnier
h, or if not, a . Provided that would do the trick, it is also something you could do at the Apache level, before proxying to Tomcat. I am wondering about possible side-effects though. The chunked encoding is probably not the only difference between 1.0 and 1.1. For example, if your Tomcat has Virtua

Re: chunked encoding

2009-06-11 Thread Tim Funk
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html 3.6.1 All HTTP/1.1 applications MUST be able to receive and decode the "chunked" transfer-coding, and MUST ignore chunk-extension extensions they do not understand. So you have to jump through big hoops to not use chunked encod

RE: chunked encoding

2009-06-11 Thread Anthony J. Biacco
s.com > -Original Message- > From: André Warnier [mailto:a...@ice-sa.com] > Sent: Thursday, June 11, 2009 5:20 PM > To: Tomcat Users List > Subject: Re: chunked encoding > > Maybe something else worth trying.. > > I think you mentioned earlier that this did not happen when yo

Re: chunked encoding

2009-06-11 Thread André Warnier
Maybe something else worth trying.. I think you mentioned earlier that this did not happen when you accessed the link directly via the Tomcat HTTP connector. Since at the Apache level, you can recognise those calls, why don't you try to proxy those calls specifically via mod_proxy_http, to th

Re: chunked encoding

2009-06-11 Thread André Warnier
Anthony J. Biacco wrote: That'd be ideal, yes. I haven't found any such parameters in Apache so far though. I wasn't necessarily thinking about an existing parameter or module. More of a custom add-on, which would make the request to Tomcat, buffer the response, and return it in one chunk w

RE: chunked encoding

2009-06-11 Thread Anthony J. Biacco
> > The client thus requests this javascript from the CDN. > > The CDN looks in their cache if they have it. > If they do, they serve it. > If not, they issue a request to your site for it, and your site > delivers > it to the CDN. The CDN anyway delivers it to the client. > If the response of y

RE: chunked encoding

2009-06-11 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com] > Subject: RE: chunked encoding > > you can set MaxPostSize to a value < =2097152 for HttpConnector in > $TOMCAT_HOME/conf/server.xml Which has absolutely nothing to do with the issue under discussion. maxPostSize is for

  1   2   >