Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 168EE7D29 for ; Thu, 17 Nov 2011 15:04:29 +0000 (UTC) Received: (qmail 99270 invoked by uid 500); 17 Nov 2011 15:04:29 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 99204 invoked by uid 500); 17 Nov 2011 15:04:28 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 99196 invoked by uid 99); 17 Nov 2011 15:04:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2011 15:04:28 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [92.42.190.144] (HELO ok2cons2.nine.ch) (92.42.190.144) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2011 15:04:24 +0000 Received: by ok2cons2.nine.ch (Postfix, from userid 1000) id 8BD5F245E4CA; Thu, 17 Nov 2011 16:04:02 +0100 (CET) Date: Thu, 17 Nov 2011 16:04:02 +0100 From: Oleg Kalnichevski To: HttpComponents Project Subject: Re: Async Server Keep Connections Open for HTTP 1.0 Message-ID: <20111117150402.GA23124@ok2cons2.nine.ch> References: <1321480746.10373.10.camel@ubuntu> <20111117092501.GB18431@ok2cons2.nine.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) On Thu, Nov 17, 2011 at 09:30:14AM -0500, Bill Speirs wrote: > Fair enough... I'm going to change my current JIRA ticket as what I > described in that ticket is not the proper way to "fix" the problem as > Robert pointed out. > > Oleg, any ideas on how to go about fixing this? Things will get > confusing fast as a 0.9, 1.0, or 1.1 request can come in, but the > developer can send back a 0.9, 1.0, or 1.1 request. I'll look into > it... > I think the problem can be addressed by making ResponseConnControl protocol interceptor take the request version into accout and adding 'connection: close' header the response message if there is no explict connection persistence control (no 'connection' header present) in the HTTP/1.0 request. Oleg > Bill- > > On Thu, Nov 17, 2011 at 4:25 AM, Oleg Kalnichevski wrote: > > On Wed, Nov 16, 2011 at 05:15:56PM -0500, Bill Speirs wrote: > >> On Nov 16, 2011 4:59 PM, "Oleg Kalnichevski" wrote: > >> > I am pretty sure the server is expected to respond with a HTTP/1.0 > >> > message but cannot back it up with an excerpt from the spec. > >> > >> The only thing I found in the spec (http://www.ietf.org/rfc/rfc2068.txt) > >> was in section 19.7: an HTTP 1.1 server should respond to a client with a > >> message in the same major version number. > >> > >> > We can think about changing the API in such a way that an empty response > >> > object is created by the framework instead of leaving it up to > >> > individual handlers. > >> > > >> > Feel free to raise a change request in JIRA. > >> > >> I'll open an improvement request, because I don't think it's a bug. > >> However, I've actaully been bit by this twice now; fool me once... > >> > >> Bill- > > > > Hi Bill > > > > I was wrong. A HTTP/1.1 compliant server should respond with a HTTP/1.1 response to a HTTP/1.0 request but ensure that composition of the message is fully compatible with HTTP/1.0. > > > > So, there is a bug in the HttpCore protocol handling code. Please raise another JIRA for this defect. > > > > Oleg > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org > > For additional commands, e-mail: dev-help@hc.apache.org > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org > For additional commands, e-mail: dev-help@hc.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org