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

John Tamplin <jat@google.com> Wed, 07 September 2011 14:16 UTC

Return-Path: <jat@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 BC60E21F8B33 for <hybi@ietfa.amsl.com>; Wed, 7 Sep 2011 07:16:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.924
X-Spam-Level:
X-Spam-Status: No, score=-105.924 tagged_above=-999 required=5 tests=[AWL=0.052, 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 2oobVCIktS-l for <hybi@ietfa.amsl.com>; Wed, 7 Sep 2011 07:16:39 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.67]) by ietfa.amsl.com (Postfix) with ESMTP id 3923F21F8B27 for <hybi@ietf.org>; Wed, 7 Sep 2011 07:16:37 -0700 (PDT)
Received: from wpaz17.hot.corp.google.com (wpaz17.hot.corp.google.com [172.24.198.81]) by smtp-out.google.com with ESMTP id p87EIGxV026125 for <hybi@ietf.org>; Wed, 7 Sep 2011 07:18:21 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1315405101; bh=d0Q9ZEevh8Hf9QtZsyRQ1sMRHcw=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rPnbZNGPmhN0zw1xO2/DzfhcX7WdQek/tDQ6Krq/9iSRRhjk6RxGqfCylyoyr90xC O7PxX3XwRYw79AiPVtDsg==
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=yHAM2p18/2wTFiIrKpgcuKwunVjh4o+nT2QtDFdcWzouQFNTmgBtybxqJLpqr5nDM kuwbm1bagGsQC7/kZzHrw==
Received: from gwj22 (gwj22.prod.google.com [10.200.10.22]) by wpaz17.hot.corp.google.com with ESMTP id p87EIFMG006768 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for <hybi@ietf.org>; Wed, 7 Sep 2011 07:18:15 -0700
Received: by gwj22 with SMTP id 22so5538983gwj.21 for <hybi@ietf.org>; Wed, 07 Sep 2011 07:18:15 -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=iYfbDTj1DS7w5w5FlnFSyCjd8JGX2QM/KzrBdJtpuU0=; b=TExEz4xgHY9cJIu8UjdGnfdmRjgk2K1QR3hd960AdtfJIxu6o3TUsJrlH1cMI+Whx+ pZVzLxVoE/UsW+Bgalxg==
Received: by 10.150.14.6 with SMTP id 6mr4959597ybn.173.1315405095289; Wed, 07 Sep 2011 07:18:15 -0700 (PDT)
Received: by 10.150.14.6 with SMTP id 6mr4959588ybn.173.1315405095117; Wed, 07 Sep 2011 07:18:15 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.49.7 with HTTP; Wed, 7 Sep 2011 07:17:55 -0700 (PDT)
In-Reply-To: <CAH9hSJYXZ285L_+eJh6VUVCAg4D+u=vQbcjVOA4RMsJSbcHqiw@mail.gmail.com>
References: <20110831184207.1514.64093.idtracker@ietfa.amsl.com> <0fc901cc6878$1681eec0$0a00a8c0@Venus> <CAH9hSJb2rH+fX0AnekYxsEkHKzb15aHrg_hDQw1baWLiWBF-3w@mail.gmail.com> <17b501cc6d31$3016d6d0$0a00a8c0@Venus> <CAH9hSJYhLpcXrOtS-nzLt2YW9QbngEsfdcNF+0TadyVA6rrK1A@mail.gmail.com> <17ef01cc6d39$3575ae50$0a00a8c0@Venus> <20110907085128.GA19144@1wt.eu> <CAH9hSJYXZ285L_+eJh6VUVCAg4D+u=vQbcjVOA4RMsJSbcHqiw@mail.gmail.com>
From: John Tamplin <jat@google.com>
Date: Wed, 07 Sep 2011 10:17:55 -0400
Message-ID: <CABLsOLBKgnTFga821t2AZ1dXobTsfMb5v8CTJhm_Nr8WMkonaA@mail.gmail.com>
To: Takeshi Yoshino <tyoshino@google.com>
Content-Type: multipart/alternative; boundary="000e0cd7551c6e243a04ac5a9d73"
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 14:16:39 -0000

On Wed, Sep 7, 2011 at 8:32 AM, Takeshi Yoshino <tyoshino@google.com> wrote:

> Yes. That's unexpected side-effect of addition of MASK bit. Without the
> flag, there was no information in a frame if it's masked or not so client
> just had to follow what the spec says. So, client never encountered such
> situation.
>
> But we don't have to keep it as legal frame just because it's possible.
>

I expect it will get used as a WS-variant when dealing with non-browser
clients -- ie, between a frontend which handles
masking/aggregation/deaggregation/SSL and the ultimate backend, I would not
be surprised if there were unmasked client->server frames.  As long as all
the browser clients all enforce masking on their connections, the problem
masking was added for is averted.

specific conditions on the cases we're not interested in.
>>
>
> We should make the spec clear on whether WebSocket client implementation
> must be prepared for masked frame or not. I'm fine once it's clear.
>

There really is no point -- the server controls both the mask and the
content, so they can arrange for any sequence on the wire regardless.  The
only case I can imagine where it might be useful is peer-to-peer WS
communication between browsers, and if we ever implement something like that
we can deal with masking then.

-- 
John A. Tamplin
Software Engineer (GWT), Google