Re: [hybi] I-D Action: draft-ietf-hybi-thewebsocketprotocol-13.txt

Takeshi Yoshino <tyoshino@google.com> Wed, 07 September 2011 05:54 UTC

Return-Path: <tyoshino@google.com>
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 48DA521F8CA2 for <hybi@ietfa.amsl.com>; Tue, 6 Sep 2011 22:54:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.896
X-Spam-Level:
X-Spam-Status: No, score=-105.896 tagged_above=-999 required=5 tests=[AWL=0.080, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RKVKoTqlefWK for <hybi@ietfa.amsl.com>; Tue, 6 Sep 2011 22:54:25 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.67]) by ietfa.amsl.com (Postfix) with ESMTP id 62ECC21F8C9A for <hybi@ietf.org>; Tue, 6 Sep 2011 22:54:24 -0700 (PDT)
Received: from hpaq2.eem.corp.google.com (hpaq2.eem.corp.google.com [172.25.149.2]) by smtp-out.google.com with ESMTP id p875u8Ps027009 for <hybi@ietf.org>; Tue, 6 Sep 2011 22:56:08 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1315374968; bh=hZ+3NW0ul5iomv7m9zWrgBfPQcA=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=RqZrJRArzH+I9S0JRABHYz/z7MlU8DCZ05uJgZLACFUPuiFbhWHN5EOkdaQlyyhSJ jyfx+bjhpTzKfvjYjttKg==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=dkim-signature:mime-version:in-reply-to:references:from:date: message-id:subject:to:cc:content-type:x-system-of-record; b=ALY/+s2LwTj6Ug8xeFERxUUo2e5FGsyEpFgG/6BWVHS4CYMO7DXDx1yG08Ri3zeUA M5X1oKf47QLIYkqlJzxVw==
Received: from yxn35 (yxn35.prod.google.com [10.190.4.99]) by hpaq2.eem.corp.google.com with ESMTP id p875u4XD021989 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <hybi@ietf.org>; Tue, 6 Sep 2011 22:56:07 -0700
Received: by yxn35 with SMTP id 35so4272913yxn.14 for <hybi@ietf.org>; Tue, 06 Sep 2011 22:56:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=c1k6A2mooI6ZrLhVIqvHnox/5A+gCZmSdrr9hfwkUNo=; b=S5wIPI6q/AWsUmPzMFvzPbJMdzW/pLFr2c5Lm8K2i4JNLxGaVCEOuu0Vd9V3Iipxnk ch9vxUuFn9c7b7rF+74Q==
Received: by 10.150.225.6 with SMTP id x6mr1056461ybg.57.1315374964566; Tue, 06 Sep 2011 22:56:04 -0700 (PDT)
Received: by 10.150.225.6 with SMTP id x6mr1056453ybg.57.1315374964389; Tue, 06 Sep 2011 22:56:04 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.158.6 with HTTP; Tue, 6 Sep 2011 22:55:44 -0700 (PDT)
In-Reply-To: <0fc901cc6878$1681eec0$0a00a8c0@Venus>
References: <20110831184207.1514.64093.idtracker@ietfa.amsl.com> <0fc901cc6878$1681eec0$0a00a8c0@Venus>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Wed, 07 Sep 2011 14:55:44 +0900
Message-ID: <CAH9hSJb2rH+fX0AnekYxsEkHKzb15aHrg_hDQw1baWLiWBF-3w@mail.gmail.com>
To: Len Holgate <len.holgate@gmail.com>
Content-Type: multipart/alternative; boundary="000e0cd483247fb79404ac539934"
X-System-Of-Record: true
Cc: hybi@ietf.org
Subject: Re: [hybi] I-D Action: draft-ietf-hybi-thewebsocketprotocol-13.txt
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: Wed, 07 Sep 2011 05:54:26 -0000

On Thu, Sep 1, 2011 at 16:23, Len Holgate <len.holgate@gmail.com> wrote:

>  4.2.1 step 6 should probably say "value of 13".
>

Yes, it's a bug.


>  Why doesn't 5.1 use MUST and MUST NOT when talking about client to server
> and server to client masking. Up until now I was under the impression that
> the server COULD mask data if it really wanted to (hence the need for the
> masking bit rather than simply assuming that client -> server == masked and
> server -> client != masked. The text in 5.1 now seems to imply that the
> server SHOULD NOT mask but it doesn't say so. I realise that client ->
> server masking is required and is specified with MUST in another part of
> the
> document but I think it should be made clear that a server CAN mask if it
> really wants to so that we don't end up with client implementations that
> don't expect to receive masked frames. One situation where I might wish to
> mask a frame from server to client would be in a pong where there's no need
> for me to unmask the data if I simply echo the ping directly back...
>

This is continuation of this thread. I think we should clarify this, i.e.
use MUST NOT or MAY here, or we'll see the same question repeatedly in the
future.
http://www.ietf.org/mail-archive/web/hybi/current/msg07768.html

If we allow the server to mask frames, clients need to implement logic for
unmasking to prepare for them. As we don't know any important use-case of
server-to-client masking, I think we should just forbid it.
OLD: All frames sent from the server to the client are not masked.
NEW: All frames sent from the server to the client MUST NOT be masked.

Let's also change
OLD: All frames sent from the client to the server are masked to avoid ...
NEW: All frames sent from the client to the server MUST be masked to avoid
...

Thanks,
Takeshi