Re: Can We Disable Chunked Encoding?

2023-07-24 Thread Terence M. Bandoian
for 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 threads

RE: Can We Disable Chunked Encoding?

2023-07-24 Thread Eric Robinson
nal 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 sending a

Re: Can We Disable Chunked Encoding?

2023-07-06 Thread Mark Thomas
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 Transfer

Triggering chunked encoding from PHP client

2017-02-03 Thread Christopher Schultz
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: Accept: application

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

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 tested

RE: Chunked encoding bug in tomcat embedded/spring MVC

2015-02-19 Thread andrew-c.brown
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. SSL is not the issue, though it may make it easier to reproduce. I can reproduce this issue

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. We have

RE: Chunked encoding bug in tomcat embedded/spring MVC

2015-02-19 Thread andrew-c.brown
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. SSL is not the issue, though it may make it easier to reproduce. I can reproduce

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 08:54, Alex Samad - Yieldbroker wrote: [snip] 1. http

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-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-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 makes you

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] 1. http://en.wikipedia.org/wiki/Chunked_transfer_encoding 2. RFC

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-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 by chunks I don't

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

Re: chunked encoding

2012-03-23 Thread Konstantin Kolinko
2012/3/24 Chema demablo...@gmail.com: 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

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 about the two byte streams

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 Chema
2012/3/23 Caldarale, Charles R chuck.caldar...@unisys.com: 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

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, wiki's, blog

Re: chunked encoding

2012-03-22 Thread Konstantin Kolinko
2012/3/23 Alex Samad - Yieldbroker alex.sa...@yieldbroker.com: 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

Re: Chunked encoding not terminated with native library

2011-03-13 Thread Chris Dumoulin
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 Synopsis section here: http://wiki.nginx.org/HttpProxyModule Based on my reading of the HTTP spec, closing

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Chris
/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 isn't sent until exactly 1 minute

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Christopher Schultz
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 not support chunked encoding, therefore Tomcat is somewhat correct in it's failure to send

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 Synopsis section here: http

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 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 Synopsis section here: http

Re: Chunked encoding not terminated with native library

2011-03-11 Thread Christopher Schultz
() 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 supports HTTP/1.0 according to the Synopsis

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 same chunked encoding. 3. The nginx reverse

Re: Chunked encoding not terminated with native library

2011-03-10 Thread Chris
: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 from Tomcat are being sent with a chunked encoding, but the 0 terminating the chunked response isn't sent

Re: Chunked encoding not terminated with native library

2011-03-10 Thread Chris
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 from Tomcat are being sent with a chunked encoding

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 being written

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 isn't sent until exactly 1 minute later

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, now: On 1/5/2011 12:54 PM

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 should

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

2011-01-06 Thread ilya goberman
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 response and chunked encoding is not necessary in this case

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

2011-01-06 Thread Christopher Schultz
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 a developer would set Connection:close header. On the server side or from the client side? I'm not sure if Mark

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: SHA1 Ilya, On 1/6/2011 12:27 PM, ilya

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 sure

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 Ilya, On 1/6/2011 4:17 PM, ilya

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-Length header omitted

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

2011-01-05 Thread Ronald Klop
...@msn.com: 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-Length header

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 associated

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 compressed). You are ignoring

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 more packets

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

2011-01-05 Thread Mark Thomas
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. On 05/01/2011 15:29, ilya goberman wrote: Mark, overhead of chunked encoding can

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: Mark, 1) TCP/IP overhead? Not sure why you

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 Connection: close

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 to do

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 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 example is concerned, I have

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-Length header omitted

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 significant is the overhead

Re: IIS isapi_redirect.dll chunked encoding option

2009-09-03 Thread Rainer Jung
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 - To unsubscribe, e-mail: users-unsubscr

Re: IIS isapi_redirect.dll chunked encoding option

2009-09-02 Thread Rainer Jung
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 is and what the general consensus is on it's stability. Difficult to answer

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

IIS isapi_redirect.dll chunked encoding option

2009-08-21 Thread Andy Wang
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 stability. Thanks, Andy

Re: IIS isapi_redirect.dll chunked encoding option

2009-08-21 Thread Peter Crowther
2009/8/21 Andy Wang aw...@ptc.com: 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

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 aw...@ptc.com: What are the general thoughts on the stability of the enable_chunked_encoding option for the IIS isapi redirector for

Re: chunked encoding

2009-07-15 Thread Anthony J. Biacco
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 the content length header still (which in itself is strange), No, it's not strange at all. If the length of the response

Re: chunked encoding

2009-07-15 Thread André Warnier
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 compressed response size in advance. There are quite a few

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 would be fine (well not fine, but I'd

Re: chunked encoding

2009-07-14 Thread charliehnabble
://www.nabble.com/chunked-encoding-tp23986311p24479138.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h

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 COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE

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 another nit: if the router is smart

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:close:

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: datagram normally refers to a UDP packet, and we're using TCP here. I'll add another nit

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 a UDP packet, and we're using TCP here. http://en.wikipedia.org/wiki

Re: chunked encoding

2009-07-14 Thread André Warnier
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't know. You

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

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-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 PM, Martin Gainty wrote: how do you accomodate

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 has nothing to do

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 obviously can't add a

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-gzip. You can set

Re: chunked encoding

2009-06-13 Thread Bill Barker
Christopher Schultz ch...@christopherschultz.net 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

RE: chunked encoding

2009-06-13 Thread Martin Gainty
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.com Subject: Re: chunked encoding

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

Re: chunked encoding

2009-06-12 Thread Rainer Jung
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 of fixed length to chunked encoding, because in general (not small

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, but an

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

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 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 used. ...

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 data chunk

RE: chunked encoding

2009-06-12 Thread Anthony J. Biacco
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 content-length to the length of the compressed content

RE: chunked encoding

2009-06-12 Thread Anthony J. Biacco
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 do have a VH in additional to the normal localhost

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.

chunked encoding

2009-06-11 Thread Anthony J. Biacco
I'm running apache 2.2.11-mod_jk 1.2.27-tomcat 6.0.18. I'm attempting to gzip javascript output from apache (static files), and tomcat (servlets with javascript content types). I'm using mod_deflate in apache to do this. Here's my problem. When the request is to a servlet (static apache files and

Re: chunked encoding

2009-06-11 Thread Markus Schönhaber
then 8k, a Content-Length header will be sent. Otherwise chunked encoding will be used. This might be the reason why you see Content-Length headers from your JSPs - their output is probably small enough. -- Regards mks

RE: chunked encoding

2009-06-11 Thread Anthony J. Biacco
-Length header will be sent. Otherwise chunked encoding will be used. This might be the reason why you see Content-Length headers from your JSPs - their output is probably small enough. I tested with a 8K jsp and did get it chunked. Do you happen to know the parameter for changing the buffer size

RE: chunked encoding

2009-06-11 Thread Anthony J. Biacco
I tested with a 8K jsp and did get it chunked. Do you happen to know the parameter for changing the buffer size? Perhaps I can increase it to a number representing the largest length of my servlet content. Which isn't too big, maybe 20K. NM on this, I found bufferSize for the AJP connector.

RE: chunked encoding

2009-06-11 Thread Anthony J. Biacco
-Original Message- From: Anthony J. Biacco Sent: Thursday, June 11, 2009 2:31 PM To: 'Tomcat Users List' Subject: RE: chunked encoding I tested with a 8K jsp and did get it chunked. Do you happen to know the parameter for changing the buffer size? Perhaps I can increase it to a number

Re: chunked encoding

2009-06-11 Thread Markus Schönhaber
Anthony J. Biacco: The only thing that makes me question this, is that if I query the servlet directly on port 8080 instead of through mod_jk/ajp, it doesn't get chunked. Well, I don’t get a transfer-encoding header I should say. But I don’t get a content length through there either. And

RE: chunked encoding

2009-06-11 Thread Martin Gainty
mks is correct you can set MaxPostSize to a value =2097152 for HttpConnector in $TOMCAT_HOME/conf/server.xml http://spdn.ifas.ufl.edu/docs/config/http.html and yes your connector will need to support HTTP 1.1 support for chunked-encoding http://spdn.ifas.ufl.edu/docs/config/http.html

Re: chunked encoding

2009-06-11 Thread André Warnier
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. In the meantime, just as an intellectual exercise, let's take the problem from the other end. A

  1   2   >