Re: [hybi] #4: handshake does not work properly with HTTP reverse proxy.

Willy Tarreau <w@1wt.eu> Thu, 02 September 2010 06:56 UTC

Return-Path: <w@1wt.eu>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D23C33A6A5D for <hybi@core3.amsl.com>; Wed, 1 Sep 2010 23:56:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.69
X-Spam-Level:
X-Spam-Status: No, score=-2.69 tagged_above=-999 required=5 tests=[AWL=-0.647, BAYES_00=-2.599, HELO_IS_SMALL6=0.556]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1jJ3oKRSte+o for <hybi@core3.amsl.com>; Wed, 1 Sep 2010 23:56:46 -0700 (PDT)
Received: from 1wt.eu (1wt.eu [62.212.114.60]) by core3.amsl.com (Postfix) with ESMTP id B1F913A69B1 for <hybi@ietf.org>; Wed, 1 Sep 2010 23:56:45 -0700 (PDT)
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id o826v3RE012393; Thu, 2 Sep 2010 08:57:03 +0200
Date: Thu, 02 Sep 2010 08:57:03 +0200
From: Willy Tarreau <w@1wt.eu>
To: John Tamplin <jat@google.com>
Message-ID: <20100902065703.GL10275@1wt.eu>
References: <068.da8db0c773647cb0ed73d576f39e93ee@tools.ietf.org> <077.16770a1037c185a3fde75a9b560a236a@tools.ietf.org> <20100902061134.GJ10275@1wt.eu> <AANLkTim_q-TzGkqGfxXySkbjGCYRG66_TZkndRYad-QT@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <AANLkTim_q-TzGkqGfxXySkbjGCYRG66_TZkndRYad-QT@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Cc: hybi@ietf.org, hybi issue tracker <trac@tools.ietf.org>, sm+ietf@elandsys.com
Subject: Re: [hybi] #4: handshake does not work properly with HTTP reverse proxy.
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 02 Sep 2010 06:56:46 -0000

On Thu, Sep 02, 2010 at 02:31:45AM -0400, John Tamplin wrote:
> On Thu, Sep 2, 2010 at 2:11 AM, Willy Tarreau <w@1wt.eu> wrote:
> 
> > However I think that we should discuss this on the list once the new
> > framing
> > is agreed upon : instead of having both the client and the server implement
> > a specific case for something barely looking like some data can flow, we
> > can
> > as well send a real WS frame and expect a real one in return (eg:
> > ping+pong).
> > It would then be the real opening handshake which might be used later when
> > the protocol evolves to other non-HTTP transport methods. HTTP would then
> > be
> > just for connection establishment up to, but not including the WS
> > handshake.
> >
> 
> If we were going to have WebSocket frames exchanged for negotiation, I would
> prefer to define something specifically for it rather than overloading
> ping/pong.  If we add a separate control frame opcode, the extra cost would
> be negligible.

yes, that's a possibility too and it could be used to exchange some
required metadata that we don't want to put in headers or that could
not be transported by TLS.

Willy