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 315B49CCE for ; Thu, 12 Apr 2012 13:07:25 +0000 (UTC) Received: (qmail 5809 invoked by uid 500); 12 Apr 2012 13:07:21 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 5739 invoked by uid 500); 12 Apr 2012 13:07:21 -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 5724 invoked by uid 99); 12 Apr 2012 13:07:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2012 13:07:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of msarmadi@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qc0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2012 13:07:13 +0000 Received: by qcsc20 with SMTP id c20so1558606qcs.18 for ; Thu, 12 Apr 2012 06:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=d5+Qk/TA7aJb3lDLrHd3pO37UK5C4TXfPNzaLx+7Zxw=; b=XFSYdaH4pJhz2XMVisjvAwsj2niDqdzQ0Sroi9FkWt/eyYwIR9kb17kKsVayydcPFj XBAKw7klcMk+U+bvT1BDPQ/31txVkKNhnaGEgxTM77r2N/Vh2rOh1iXKsSeDozgwYIEX ykQLLDYL8hQsOn4paFaQhd+b0FoKY8UktbCQCTJRIScvn5oaVcqIaiRa09ww5HvVa5aj xPLOGwpIzaFBMJ4629iXmc0On67+IivHJPUDr4awHbMFVzTt6uTMEaTdwP8NpmVwmNur tOd5+IXhTMipCbgMv3V5TMlZb7l8D2OYiLuo/zXJRYSYXYSOxU3WuqJOybnGe7r46ZxF cncQ== Received: by 10.224.33.134 with SMTP id h6mr3839015qad.28.1334236012456; Thu, 12 Apr 2012 06:06:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.91.148 with HTTP; Thu, 12 Apr 2012 06:06:31 -0700 (PDT) In-Reply-To: References: From: Mehdi Sarmadi Date: Thu, 12 Apr 2012 17:36:31 +0430 Message-ID: Subject: Re: Problem with making HTTP KeepAlive work To: Tomcat Users List Content-Type: multipart/alternative; boundary=20cf306f779e91a9e804bd7b072d --20cf306f779e91a9e804bd7b072d Content-Type: text/plain; charset=UTF-8 you'r right just fixed it. anyway, I can't still find the "Connection: Keep-Alive" HTTP Response(from tomcat) header. I just don't know where to check, any clues? anything missing? -- Mehdi Sarmadi On Thu, Apr 12, 2012 at 5:28 PM, Konstantin Kolinko wrote: > 2012/4/12 Mehdi Sarmadi : > > > > I just setup a tomcat 7 on linux for test. I just used this connection > > property in server.xml > > > > here is out connector > > > allowTrace="false" connectionTimeout="20000" clientAuth="false" /> > > > > , but when we try to connect from a client "Firefox" in my case, > > "Connection: Keep-Alive" is sent in the Request by Browser but > "Connection: > > Keep-Alive" is not visible in the HTTP Response Headers, which obviously > > coming from weblogic. I use HTTPFox plugin. > > > > So I guess that that config does not work. Something seems to be > missing. > > Any suggestion for making HTTP KeepAlive work in Tomcat? > > > > Connection: Keep-Alive header has different meaning. > > It is needed only when you have Keep-Alive: header as well so that > "Keep-Alive" header value is not lost at proxies. > > Keep alive feature of HTTP/1.1 does not need to be specified in the > response. It is "on" by default. See RFC2616 aka HTTP/1.1 > specification. > > > By the way: > 1. You are missing quotes around "-1". The above is broken XML. > 2. You will get the same response even if you remove the > maxKeepAliveRequests attribute. > > Best regards, > Konstantin Kolinko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --20cf306f779e91a9e804bd7b072d--