Re: [hybi] -09: sending, closing, errors, extensions

Alexey Melnikov <alexey.melnikov@isode.com> Thu, 07 July 2011 20:54 UTC

Return-Path: <alexey.melnikov@isode.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 5F9339E8022 for <hybi@ietfa.amsl.com>; Thu, 7 Jul 2011 13:54:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level:
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i51sLj9ao-44 for <hybi@ietfa.amsl.com>; Thu, 7 Jul 2011 13:54:48 -0700 (PDT)
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by ietfa.amsl.com (Postfix) with ESMTP id 909419E8019 for <hybi@ietf.org>; Thu, 7 Jul 2011 13:54:48 -0700 (PDT)
Received: from [188.28.132.132] (188.28.132.132.threembb.co.uk [188.28.132.132]) by rufus.isode.com (submission channel) via TCP with ESMTPA id <ThYdFgB=gCkh@rufus.isode.com>; Thu, 7 Jul 2011 21:54:47 +0100
Message-ID: <4E161CEB.2080104@isode.com>
Date: Thu, 07 Jul 2011 21:54:03 +0100
From: Alexey Melnikov <alexey.melnikov@isode.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
X-Accept-Language: en-us, en
To: Peter Saint-Andre <stpeter@stpeter.im>
References: <4DFA967D.5050308@stpeter.im>
In-Reply-To: <4DFA967D.5050308@stpeter.im>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] -09: sending, closing, errors, extensions
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: Thu, 07 Jul 2011 20:54:49 -0000

Peter Saint-Andre wrote:

>More comments...
>
>Section 6.1 states:
>
>   5.  If the data is being sent by the client, the frame(s) MUST be
>       masked as defined in Section 4.3.
>
>Section 6.2 states:
>
>   Data frames received by a server from a client MUST be unmasked as
>   described in Section 4.3.
>
>The word "unmasked" makes it sound like this contradicts the text in
>Section 6.1 -- as in, "must not be masked" as opposed to "the server
>shall remove the masking applied by the client".
>
Changed. I've read "unmask" as "remove masking", but I see why this can 
be confusing.

>In Section 7, the text about the close /reason/ makes it sound as if an
>application might choose to show UTF-8 encoded data to an end user. That
>might lead the reader to think that language tagging might be necessary.
>Is it?
>
I think I've complained about this privately as well :-)

>In Section 8.2, there is no deterministic server behavior upon receiving
>data that is not valid UTF-8. Why? What use cases would motivate
>accepting such data instead of just closing the connection?
>
>Section 9.1 says:
>
>   Any extension-token used MUST either be a registered token
>   (registration TBD), or have a prefix of "x-" to indicate a private-
>   use token.
>
>It's probably not a good idea to have "registration TBD" in a document
>that is going for IETF Last Call. :) Presumably a forward pointer to
>Section 11.6 would suffice.
>
Fixed.

>Do we really want to encourage use of "x-"? See here for relevant
>considerations (I plan to submit an updated version soon):
>
>http://tools.ietf.org/id/draft-saintandre-xdash-considered-harmful-01.txt
>