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

"Richard L. Barnes" <rbarnes@bbn.com> Wed, 07 September 2011 12:12 UTC

Return-Path: <rbarnes@bbn.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 5EB9D21F8BE5 for <hybi@ietfa.amsl.com>; Wed, 7 Sep 2011 05:12:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.604
X-Spam-Level:
X-Spam-Status: No, score=-106.604 tagged_above=-999 required=5 tests=[AWL=-0.005, BAYES_00=-2.599, 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 Muq5K5AiIpBW for <hybi@ietfa.amsl.com>; Wed, 7 Sep 2011 05:12:29 -0700 (PDT)
Received: from smtp.bbn.com (smtp.bbn.com [128.33.1.81]) by ietfa.amsl.com (Postfix) with ESMTP id A840E21F86B3 for <hybi@ietf.org>; Wed, 7 Sep 2011 05:12:29 -0700 (PDT)
Received: from [128.89.253.15] (port=51965 helo=[192.168.1.11]) by smtp.bbn.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.74 (FreeBSD)) (envelope-from <rbarnes@bbn.com>) id 1R1H1E-0004uZ-A3; Wed, 07 Sep 2011 08:14:17 -0400
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: "Richard L. Barnes" <rbarnes@bbn.com>
In-Reply-To: <17b501cc6d31$3016d6d0$0a00a8c0@Venus>
Date: Wed, 07 Sep 2011 08:14:13 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <C2CBF8E1-ADC8-48F9-AB82-B98151A36A81@bbn.com>
References: <20110831184207.1514.64093.idtracker@ietfa.amsl.com> <0fc901cc6878$1681eec0$0a00a8c0@Venus> <CAH9hSJb2rH+fX0AnekYxsEkHKzb15aHrg_hDQw1baWLiWBF-3w@mail.gmail.com> <17b501cc6d31$3016d6d0$0a00a8c0@Venus>
To: Len Holgate <len.holgate@gmail.com>
X-Mailer: Apple Mail (2.1084)
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 12:12:30 -0000

Sorry if I'm missing something (I missed the beginning of the thread), but are there people out there who actually *want* masking from the server to the client?  The work by abarth, ekr, et al. showed a roughly 40% performance hit due to masking under some circumstances -- presumably adding s2c masking would degrade performance even further.

--Richard  


On Sep 7, 2011, at 3:38 AM, Len Holgate wrote:

>> 	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 ...
> 
> That sounds good; well better than it being vague anyway. 
> 
> Now, of course, the masking bit in the header is pretty much redundant... 
> 
> Equally good would be:
> 
> OLD: All frames sent from the server to the client are not masked.
> NEW: All frames sent from the server to the client CAN be masked but there's
> no technical or security reason for them to be and so in most cases they
> SHOULD NOT be masked.
> 
> Clients already have the code to mask/unmask, the logic isnt that complex...
> 
> Len
> http://www.serverframework.com
> 
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi