Re: [hybi] Proposal: HTTP upgrade process

Willy Tarreau <w@1wt.eu> Tue, 17 August 2010 11:11 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 BBA103A6926 for <hybi@core3.amsl.com>; Tue, 17 Aug 2010 04:11:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.781
X-Spam-Level:
X-Spam-Status: No, score=-2.781 tagged_above=-999 required=5 tests=[AWL=-0.738, 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 b3BuGaNg7yfq for <hybi@core3.amsl.com>; Tue, 17 Aug 2010 04:11:11 -0700 (PDT)
Received: from 1wt.eu (1wt.eu [62.212.114.60]) by core3.amsl.com (Postfix) with ESMTP id 81E103A687C for <hybi@ietf.org>; Tue, 17 Aug 2010 04:11:10 -0700 (PDT)
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id o7HBBcd8007663; Tue, 17 Aug 2010 13:11:38 +0200
Date: Tue, 17 Aug 2010 13:11:38 +0200
From: Willy Tarreau <w@1wt.eu>
To: Vladimir Katardjiev <vladimir@d2dx.com>
Message-ID: <20100817111138.GC6166@1wt.eu>
References: <AANLkTi=aR8+LgcoXDVhuu-HC2k3TB6YP2WcXEo8yC1Jz@mail.gmail.com> <903054FE-EEFB-46A6-A008-9EBE71EB873A@d2dx.com> <e2c63402e7f2b66428df3948498d6e45.squirrel@sm.webmail.pair.com> <6EDF9BD6-DD74-4598-A4DB-1E635132ACB1@d2dx.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <6EDF9BD6-DD74-4598-A4DB-1E635132ACB1@d2dx.com>
User-Agent: Mutt/1.4.2.3i
Cc: Hybi <hybi@ietf.org>
Subject: Re: [hybi] Proposal: HTTP upgrade process
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: Tue, 17 Aug 2010 11:11:16 -0000

On Tue, Aug 17, 2010 at 12:18:58PM +0200, Vladimir Katardjiev wrote:
> Hm. It seems I accidentally sent out the wrong version of the mail. I didn't intend to sound as if I was arguing for the eight bytes themselves. What I thought I wrote in addition was that the intention was for the 8 bytes to be functionally part of the WS stream, so figure this:
> 
> 1) HTTP Upgrade request
> 2) 101 response
> 3) 8 bytes random req
> 4) WS OK response

Yes, that's it. And the 8 bytes random could even be a PING message.

> Since this would be 2 RTTs (1-2 + 3-4), in -76, 1&3 and 2&4 were baked into each-other.

no, not necessarily 2 RTTs if the sender sends the 1+3 at the same time,
then the responder can receive 1, send 2, then receive 3 and send 4.

Please check the various cases of HTTP vs round trips in my earlier e-mail here :

   http://www.ietf.org/mail-archive/web/hybi/current/msg03238.html

> I don't necessarily agree with that; I'd prefer separation of concerns, but I was mainly intending to explain why those eight bytes found their way into the text in the first place.

It was to ensure that intermediaries were able to forward them. But in my
opinion, it does not bring that many advantages over sending them as headers.

Regards,
Willy