Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 75313 invoked from network); 5 Jan 2011 05:04:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jan 2011 05:04:46 -0000 Received: (qmail 87940 invoked by uid 500); 5 Jan 2011 05:04:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 87474 invoked by uid 500); 5 Jan 2011 05:04:39 -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 87454 invoked by uid 99); 5 Jan 2011 05:04:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jan 2011 05:04:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of goberman@msn.com designates 65.54.190.100 as permitted sender) Received: from [65.54.190.100] (HELO bay0-omc2-s25.bay0.hotmail.com) (65.54.190.100) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jan 2011 05:04:30 +0000 Received: from BAY146-W21 ([65.54.190.125]) by bay0-omc2-s25.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 4 Jan 2011 21:04:10 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_a0c74b92-43b1-4fd5-875c-fc52ef6320af_" X-Originating-IP: [99.9.45.73] From: ilya goberman To: Subject: How to disable chunked encoding for the Http11NioProtocol connector. Date: Tue, 4 Jan 2011 23:04:09 -0600 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 05 Jan 2011 05:04:10.0305 (UTC) FILETIME=[FCE34B10:01CBAC95] --_a0c74b92-43b1-4fd5-875c-fc52ef6320af_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I use NIO HTTP Tomcat connector org.apache.coyote.Http11NioProtocol to impl= ement 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" hea= der omitted. Is there a way to do it besides having client send HTTP 1.0 request (that i= s not possible in the majority of cases)? Thanks=20 = --_a0c74b92-43b1-4fd5-875c-fc52ef6320af_--