Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 427CC10F2A for ; Mon, 3 Feb 2014 09:35:05 +0000 (UTC) Received: (qmail 4937 invoked by uid 500); 3 Feb 2014 09:35:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 4639 invoked by uid 500); 3 Feb 2014 09:34:58 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 4630 invoked by uid 99); 3 Feb 2014 09:34:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Feb 2014 09:34:57 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.177.80.26] (HELO mail2.toyota-europe.com) (195.177.80.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Feb 2014 09:34:45 +0000 X-AuditID: ac100466-f79926d000001a03-2a-52ef62a0c078 Received: from bxlnotes04.be.tmme.com (Unknown_Domain [150.45.91.1]) by mail2.toyota-europe.com (Toyota Messaging Gateway) with SMTP id 56.8E.06659.0A26FE25; Mon, 3 Feb 2014 10:34:24 +0100 (CET) To: users@tomcat.apache.org MIME-Version: 1.0 Subject: Tomcat and "Chunked Transfer-Encoding" X-KeepSent: 7D810A09:3A7E34D4-C1257C74:0033B153; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3 September 15, 2011 From: Walter.Heestermans@toyota-europe.com Message-ID: Date: Mon, 3 Feb 2014 10:34:21 +0100 X-MIMETrack: Serialize by Router on BXLNOTES04/TMME(Release 8.5.3|September 15, 2011) at 03/02/2014 10:34:24 Content-Type: multipart/mixed; boundary="=_mixed 00348C7FC1257C74_=" X-Brightmail-Tracker: H4sIAAAAAAAAA11TbUxTVxjmcAtcaA/eXmp5WzRuDck2vkUnG5tmRF38SIhpzBY1Ri729mP2 g/S2zroPmNkYgQ0HTBcxmdC4D+pmVSiiRmYKOHE/pjBnTOZ0hBFEaRFQ42bc7u1t6cV/T57n Pc/zvuc9hyTo/1K1pMXuYp12xqpLTpMdzN+G8tsqw/qiI5/RrwTuP0BvoHUnxxqITWhr2usG 1mrZzToLV1WkmU/33E2pauxT7ukeu0rUoNAnynqUSgK1HM5cGkwWsRqu/OnncRpJUwMI9rc2 IUFQUVkw6T9KCBhTShg8NCqrRySZQRXCdPOH4tn1cKazHYl4BdwZvoqEkmQqB+obS8WTW2Dq m69TBCyjsmHK+0uSUAKUHWa63xMgQa2B6x+t+wLhVklUa1wRaILaBF5vIFnEeXDJd5EQcS54 f3ucIuJCuHC5lhCPloKvPl2kn4cvG/6KlpRC5z+fRnEJ/BGaTZTWtCG5D6k5G1dc4HJ4HC4m n3U7HVVswU6H7RTir/4HSmbsQeOjrwYRRSKdAs9sDevpJGY357EFkYlM1Gnxjx339HRGpcPg MTOceQfnrrRZOM7isOsWYhW/NTp9TnO6rSynU2FTOU/jObrSbd3FG73PhKVGdvZdzsq6+HcQ RNl8yyMnjl1BWpndYWd5iwsVgoWB8exlnQ7ROIiySJkuE+cENuhpysS42F0sW8U6YypHkrrF GCUkJNBqJ2ti9xgtVt5d2jHgDqEJpVQWm87E9HZeoaRKpO/FuNcf0s93lLaeSKYG0U5SodOI 0TRXxdg4i0kaq8InhVgck8TIDNzyFs8qYmwkToOLhdI5l3jUZeTWLsL7vuO3sVBQzW77/Om0 mfiIcJaSqJEkrRqfFY4tkAhCGG/XtDY83y6eF/uaE2gc8W8D8HHhISj5n/vMdBm4TohVRBVx OBovE0h5lIzMBnhp5PajXDyquJZPoGb3JcMtP4LeYwQ86k+FwWty+LudggEfBb11arg1CDAy CfD7NMD0OQ30h5ZA57/PwcOmF6Bt+CV4+lUOXBzKg5neIrj2ZBm0eJfD4dDLcP9gCdz4uQQO P1gJv3aXwff7V0PzwzUQ7loPHx/aAA2hjTA7vhn8/rcn+E0mxjfpYp6dVYWPr41sMirFNqkR 7lcRY6ObzBLIOZf4uNoaZHkt+8WiWgOx5fHEtq6amu6ZNx1yo3uH8e7Q56Uj5dXVupyy4euK 2junFnS7ugzK9PMlK3xgO3FjyaOapwb5Xv9Qf/CD9saygebqd6aazs6er9OYA7dXLcpt+Ol0 3zS3feVEhWVzT99Y0oHVN++dm7w9WtDxbW5L4KYnr1llfFJ+oFMn48zM0hzCyTH/A0WOiUKS BQAA X-Virus-Checked: Checked by ClamAV on apache.org --=_mixed 00348C7FC1257C74_= Content-Type: multipart/alternative; boundary="=_alternative 00348C7FC1257C74_=" --=_alternative 00348C7FC1257C74_= Content-Type: text/plain; charset="US-ASCII" Hi, We have some weird behaviopur with one of our applications using apache-tomcat-6.0.37. This is the report of the newtork engineer: The application (or app server - apache/coyote) is returning a response with "Chunked Transfer-Encoding", but is sending the first chunks before giving the http headers (that defines the chunk-encoding). The result is that the client receives a response stating by the definition on the chunk lenght (7a5), and as the header "Content-Encoding" has not been received, that length definition is interpreted as response characters. Here is a dump of the communication between TARS Reverse Proxy and the Back-end. (You may notice the response headers - 200 OK - after the first chunk (in blue, starting by "7a5", the length in HEX ) See attached screenshot tcpstream.jpg. Regards Walter This e-mail may contain confidential information. If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail. If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately. --=_alternative 00348C7FC1257C74_= Content-Type: text/html; charset="US-ASCII" Hi,

We have some weird behaviopur with one of our applications using apache-tomcat-6.0.37.

This is the report of the newtork engineer:
The application (or app server - apache/coyote) is returning a response with "Chunked Transfer-Encoding", but is sending the first chunks before giving the http headers (that defines the chunk-encoding).

The result is that the client receives a response stating by the definition on the chunk lenght (7a5), and as the header "Content-Encoding" has not been received, that length definition is interpreted as response characters.

Here is a dump of the communication between TARS Reverse Proxy and the Back-end. (You may notice the response headers - 200 OK - after the first chunk (in blue, starting by "7a5", the length in HEX )


See attached screenshot tcpstream.jpg.




Regards
Walter



This e-mail may contain confidential information.
If you are not an addressee or otherwise authorised to receive this message, you should not use, copy, disclose or take any action based on this e-mail.
If you have received this e-mail in error, please inform the sender promptly and delete this message and any attachments immediately.
--=_alternative 00348C7FC1257C74_=-- --=_mixed 00348C7FC1257C74_= Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --=_mixed 00348C7FC1257C74_=--