Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D3F1E200C0C for ; Mon, 30 Jan 2017 16:43:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D286A160B4D; Mon, 30 Jan 2017 15:43:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 264AF160B41 for ; Mon, 30 Jan 2017 16:43:49 +0100 (CET) Received: (qmail 77481 invoked by uid 500); 30 Jan 2017 15:43:48 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 77459 invoked by uid 99); 30 Jan 2017 15:43:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jan 2017 15:43:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 11CF6C0D33 for ; Mon, 30 Jan 2017 15:43:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.101 X-Spam-Level: X-Spam-Status: No, score=-3.101 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-2.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=elyograg.org Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id CEJxIauDUb3Y for ; Mon, 30 Jan 2017 15:43:41 +0000 (UTC) Received: from frodo.elyograg.org (frodo.elyograg.org [166.70.79.219]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 91EE45F295 for ; Mon, 30 Jan 2017 15:43:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by frodo.elyograg.org (Postfix) with ESMTP id ACC6381B for ; Mon, 30 Jan 2017 08:43:23 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=mail; t= 1485791002; bh=97JfuflOPwIH41pGdSmeEIBSbe58NhsQvLwRHVbVcTs=; b=S 4EZPswZ0qNHuhdTqHkJQYSxsub4WLXr+7BFCA7Kx1PM0spbgeGCenAfIG5BfwCRs 4xleavce2CX5wt2CEwKdFJAPIeAHgLgm5xnpISaA1XYbtkyKyVXkzFpFAMyjd3+i hh+PhgEw3c9j7DU5lXAtwUqdT8MzzZAjFG679iDe8I= X-Virus-Scanned: Debian amavisd-new at frodo.elyograg.org Received: from frodo.elyograg.org ([127.0.0.1]) by localhost (frodo.elyograg.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id j3jtDF90OzW4 for ; Mon, 30 Jan 2017 08:43:22 -0700 (MST) Received: from [192.168.1.111] (111.int.elyograg.org [192.168.1.111]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: elyograg@elyograg.org) by frodo.elyograg.org (Postfix) with ESMTPSA id CA3397FD for ; Mon, 30 Jan 2017 08:43:22 -0700 (MST) Subject: Re: Support HTTP/2 protocol To: HttpClient User Discussion References: <1485443725.9783.4.camel@apache.org> From: Shawn Heisey Message-ID: <4b0d409f-5b38-8c76-78f7-a55e5682b843@elyograg.org> Date: Mon, 30 Jan 2017 08:43:32 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <1485443725.9783.4.camel@apache.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit archived-at: Mon, 30 Jan 2017 15:43:50 -0000 On 1/26/2017 8:15 AM, Oleg Kalnichevski wrote: > ALPN will be supported as soon as it is supported by the Java platform > (which is not going to happen until Java 9). I see evidence that the other Java http implementations have ALPN support already ... but those systems implement both server and client. Could it be that those ALPN implementations are server-side only? I can't seem to easily locate anything saying for sure. > ALPN can be used to advertise server protocol capabilities at the time > of SSL handshake and allow clients to pick the desired protocol from > the list of supported protocols. If one knows supported protocols > beforehand ALPN is completely useless. Clients can go straight to using > HTTP/2 if the server is known to support it. > > In the next release of HttpCore I would like to add protocol detection > logic to enable endpoints to detect HTTP protocol version by examining > the first packet received from the opposite endpoint. This in my > opinion would be a much more practical feature. ALPN presently is very > low on my priority list. > > Having said that ALPN support contribution would be welcome if someone > is willing to develop it. Knowing in advance that HTTP/2 support is available may be problematic. I can imagine a situation where servers are upgraded gradually, and the client may not know whether the one it's connecting to can support the new protocol. Can HTTP/2 detection be reliable without ALPN, even in situations where connecting to the same host/port may support HTTP/2 on one connection, but not the next? TCP load balancing is relatively common with SSL. If such detection can be reliable, then there won't be anything to worry about. For my webserver installations, I am hoping to get HTTP/2 support enabled in the load balancer and worry about support on the back end later. I'm expecting the back-end LAN to be fast enough that multiple connections can easily be established while the Internet-facing side works through the inherent packet latency. Thanks, Shawn --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org