Re: [hybi] Questions and comments on draft-hybi-thewebsocketprotocol-10

Willy Tarreau <w@1wt.eu> Mon, 18 July 2011 14:46 UTC

Return-Path: <w@1wt.eu>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6A27C21F858A for <hybi@ietfa.amsl.com>; Mon, 18 Jul 2011 07:46:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.082
X-Spam-Level:
X-Spam-Status: No, score=-6.082 tagged_above=-999 required=5 tests=[AWL=-4.039, BAYES_00=-2.599, HELO_IS_SMALL6=0.556]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2HGTq5oDYwbF for <hybi@ietfa.amsl.com>; Mon, 18 Jul 2011 07:46:34 -0700 (PDT)
Received: from 1wt.eu (1wt.eu [62.212.114.60]) by ietfa.amsl.com (Postfix) with ESMTP id 7C4C821F8589 for <hybi@ietf.org>; Mon, 18 Jul 2011 07:46:33 -0700 (PDT)
Received: (from willy@localhost) by mail.home.local (8.14.4/8.14.4/Submit) id p6IEkUFu004244; Mon, 18 Jul 2011 16:46:31 +0200
Date: Mon, 18 Jul 2011 16:46:30 +0200
From: Willy Tarreau <w@1wt.eu>
To: Alexey Melnikov <alexey.melnikov@isode.com>
Message-ID: <20110718144630.GH2444@1wt.eu>
References: <4C26A6A5-DA13-45A3-9DBA-D2515DF923CD@mnot.net> <4E2444CE.6040403@isode.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4E2444CE.6040403@isode.com>
User-Agent: Mutt/1.4.2.3i
Cc: Mark Nottingham <mnot@mnot.net>, "hybi@ietf.org HTTP" <hybi@ietf.org>
Subject: Re: [hybi] Questions and comments on draft-hybi-thewebsocketprotocol-10
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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: Mon, 18 Jul 2011 14:46:34 -0000

Hi Alexey,

On Mon, Jul 18, 2011 at 03:35:58PM +0100, Alexey Melnikov wrote:
> >2) The Upgrade token has no version; e.g., from the examples in 1.2:
> >   Upgrade: websocket
> >Why? The protocol version seems to be carried in the Sec-WebSocket-Version 
> >header; could it not be moved (or copied) to the upgrade token?
> >
> What is the value in duplicating the version in the Upgrade token?

I think it can be a easier for some intermediaries to decide what action to
take based on the Upgrade header alone, especially if a client supports 2
versions and the server responds with the selected one.

Regards,
Willy