Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-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 904EE18715 for ; Tue, 9 Feb 2016 17:21:21 +0000 (UTC) Received: (qmail 80887 invoked by uid 500); 9 Feb 2016 17:21:20 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 80813 invoked by uid 500); 9 Feb 2016 17:21:20 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 80803 invoked by uid 99); 9 Feb 2016 17:21:20 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Feb 2016 17:21:20 +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 52F3BC0D23 for ; Tue, 9 Feb 2016 17:21:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.53 X-Spam-Level: X-Spam-Status: No, score=-0.53 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.429, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=greenbytes.de header.b=CJ/ONi/2; dkim=pass (1024-bit key) header.d=greenbytes.de header.b=ELcyAT3N Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id lzrpfYzgPQEV for ; Tue, 9 Feb 2016 17:21:17 +0000 (UTC) Received: from mail.greenbytes.de (mail.greenbytes.de [217.91.35.233]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id E049420CB7 for ; Tue, 9 Feb 2016 17:21:16 +0000 (UTC) Received: by mail.greenbytes.de (Postfix, from userid 117) id 0243515A0898; Tue, 9 Feb 2016 18:21:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=greenbytes.de; s=mail; t=1455038470; bh=gljoyQbo8d86h38hmDUCujXfmI2dX+mjBEK5Otkjy08=; h=Subject:From:In-Reply-To:Date:References:To:From; b=CJ/ONi/2R3CwbYwk/LpOK2SIv0480TRzdmGNHySDNutIhaObTyb+ytEnJZe0fuy/i bEJld8qpxBxn4teuc838CX9lUvAdQ8BEJVgYNgP48L2K92U0gMLEMdWfzZabXFhZfa RB18mVyFSj9hMRqyCj5wyYgRBo2P01bs5C5ZSe+8= Received: from [192.168.178.41] (unknown [93.211.105.82]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.greenbytes.de (Postfix) with ESMTPSA id 7E5A015A04A8 for ; Tue, 9 Feb 2016 18:21:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=greenbytes.de; s=mail; t=1455038469; bh=gljoyQbo8d86h38hmDUCujXfmI2dX+mjBEK5Otkjy08=; h=Subject:From:In-Reply-To:Date:References:To:From; b=ELcyAT3No0Vu041sQDeLHMp/fpzdHB+aPzS9QxUZF2yML3NsJDAbVNsN8vfntyzWU w//3AVhQeI1GA2dLzFzWZ+obAGDrwxOhkG8IlbZE9AICtGgopBQDMVWtLB6yx5r8DM n4M4num00fstDKrKjzgc0zsglwQpLkfwFCl48CvE= Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: mod_proxy_http2 From: Stefan Eissing In-Reply-To: Date: Tue, 9 Feb 2016 18:21:08 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <5904AE25-F5C5-442F-89DB-2E6945C079CD@greenbytes.de> References: To: dev@httpd.apache.org X-Mailer: Apple Mail (2.3112) I had the effect that when a socket was determined to be dead, the SNI = was cleared and a new connection was made without any SNI. So, I save = the first ssl_hostname I see and set that on every new connection. > Am 09.02.2016 um 15:42 schrieb Yann Ylavic : >=20 > On Mon, Feb 8, 2016 at 6:07 PM, Stefan Eissing > wrote: >>=20 >> One thing: the ssl_hostname that is used for SNI by the generic proxy = utils seems to get lost when the socket needs to reset and is then not = available on the next connect. That should affect mod_proxy_http as far = as I can tell. Maybe someone with more experience in that module wants = to take a look. >=20 > This is intended (for http/1 at least), why is it an issue? > When mod_proxy closes the backend connection, it indeed clears any > associated SNI. > But it sets the SNI for any new connection, based on the Host > requested on that connection. > Keep in mind that with "ProxyPreserveHost on" the requested Host may > be the one given by the client, which may hence differ for each > request (mod_proxy won't reuse a connection with a different SNI than > the Host it requests).