Re: [hybi] Review of draft-ietf-hybi-thewebsocketprotocol-13

"Richard L. Barnes" <rbarnes@bbn.com> Tue, 06 September 2011 15:23 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 6C0E821F8BE5 for <hybi@ietfa.amsl.com>; Tue, 6 Sep 2011 08:23:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.553
X-Spam-Level:
X-Spam-Status: No, score=-106.553 tagged_above=-999 required=5 tests=[AWL=0.046, 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 S8NQ+ucw+RLV for <hybi@ietfa.amsl.com>; Tue, 6 Sep 2011 08:23:34 -0700 (PDT)
Received: from smtp.bbn.com (smtp.bbn.com [128.33.0.80]) by ietfa.amsl.com (Postfix) with ESMTP id DC61021F8BDC for <hybi@ietf.org>; Tue, 6 Sep 2011 08:23:33 -0700 (PDT)
Received: from ros-dhcp192-1-51-76.bbn.com ([192.1.51.76]:61103) by smtp.bbn.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.74 (FreeBSD)) (envelope-from <rbarnes@bbn.com>) id 1R0xWa-000N5f-8Y; Tue, 06 Sep 2011 11:25:20 -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: <634914A010D0B943A035D226786325D422C0EB8D2D@EXVMBX020-12.exch020.serverdata.net>
Date: Tue, 06 Sep 2011 11:25:19 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <636F3C06-0F65-4E54-914D-A8365AEB1AD9@bbn.com>
References: <942CCA6B-B784-441B-96CA-3506FFC439E1@bbn.com> <CALiegfmyQ5h4S2FgBnrh2VLr8+q-h0sLiGsww7T+1VwYNRo4wQ@mail.gmail.com> <72E40A0F-C923-472F-9534-538B89F7A444@bbn.com> <CAMaigV=0S+Q=A=RwS-j1Hy70EuuTtjYgrm+VW3ecorMb6U_3Nw@mail.gmail.com> <A5C9AECF-2CD6-480B-BE27-2A035CD6BE40@bbn.com> <634914A010D0B943A035D226786325D422C0EB8D2D@EXVMBX020-12.exch020.serverdata.net>
To: Tobias Oberstein <tobias.oberstein@tavendo.de>
X-Mailer: Apple Mail (2.1084)
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Review of draft-ietf-hybi-thewebsocketprotocol-13
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: Tue, 06 Sep 2011 15:23:34 -0000

On Sep 6, 2011, at 11:06 AM, Tobias Oberstein wrote:

>> Using the above definition, I guess validating the overall message makes
>> sense.  The one remaining concern that I would have would be if fragmented
>> frames are used for streaming.  An application could start processing data
>> and get deep into the middle of a stream before it recognized an error.
>> Whereas if each frame had to be UTF-8 valid, then intermediate results
>> would all be UTF-8 valid as well.
> 
> A _single_ frame can be up to 2^63 octets, and a message can consist of
> an infinite sequence of frames.
> 
> Requiring frame boundaries to observe utf-8 code point boundaries is
> not a solution for "fail fast on invalid utf-8".
> 
> An incremental utf-8 validator is one - and works regardless of boundaries
> or frame length.

Well, that's a separate argument.  My first review of this draft pointed out the futility of having two methods to send effectively infinite messages.

I don't disagree that incremental validation of jumbo-frames is a good idea, though.

--Richard