Re: [hybi] WS framing alternative

Greg Wilkins <gregw@webtide.com> Tue, 27 October 2009 11:53 UTC

Return-Path: <gregw@webtide.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 42B333A693A for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 04:53:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.341
X-Spam-Level:
X-Spam-Status: No, score=-1.341 tagged_above=-999 required=5 tests=[AWL=-0.634, BAYES_00=-2.599, J_CHICKENPOX_66=0.6, MISSING_HEADERS=1.292]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EdY60l0ol3YM for <hybi@core3.amsl.com>; Tue, 27 Oct 2009 04:53:20 -0700 (PDT)
Received: from mail-yx0-f192.google.com (mail-yx0-f192.google.com [209.85.210.192]) by core3.amsl.com (Postfix) with ESMTP id E5DB93A681A for <hybi@ietf.org>; Tue, 27 Oct 2009 04:53:15 -0700 (PDT)
Received: by yxe30 with SMTP id 30so46342yxe.29 for <hybi@ietf.org>; Tue, 27 Oct 2009 04:53:27 -0700 (PDT)
Received: by 10.150.129.27 with SMTP id b27mr5548119ybd.29.1256644407361; Tue, 27 Oct 2009 04:53:27 -0700 (PDT)
Received: from ?10.10.1.9? (60-242-119-126.tpgi.com.au [60.242.119.126]) by mx.google.com with ESMTPS id 13sm702077gxk.9.2009.10.27.04.53.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 27 Oct 2009 04:53:26 -0700 (PDT)
Message-ID: <4AE6DF31.4010109@webtide.com>
Date: Tue, 27 Oct 2009 22:53:21 +1100
From: Greg Wilkins <gregw@webtide.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
CC: "hybi@ietf.org" <hybi@ietf.org>
References: <8B0A9FCBB9832F43971E38010638454F0F1EA72C@SISPE7MB1.commscope.com> <Pine.LNX.4.62.0910270903080.9145@hixie.dreamhostps.com> <4AE6C6A8.6090307@webtide.com> <4AE6D661.1090007@it.aoyama.ac.jp>
In-Reply-To: <4AE6D661.1090007@it.aoyama.ac.jp>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Subject: Re: [hybi] WS framing alternative
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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, 27 Oct 2009 11:53:21 -0000

Martin J. Dürst wrote:
> On 2009/10/27 19:08, Greg Wilkins wrote:
> 
>> Existing UTF-8 to character conversions will error if they get a partial
>> multipart character,
> 
> No, good transcoding libraries have options that say what to do in such
> a case. Iconv is definitely an example, String#encode in Ruby is another.

and such libraries make working out the length in bytes very
simple.   So if you have a good library, then the argument that
the byte length can't be known is not applicable.

regards