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

Alexey Melnikov <alexey.melnikov@isode.com> Tue, 06 September 2011 20:24 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 A645321F8E69; Tue, 6 Sep 2011 13:24:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.974
X-Spam-Level:
X-Spam-Status: No, score=-101.974 tagged_above=-999 required=5 tests=[AWL=-0.771, BAYES_00=-2.599, MIME_QP_LONG_LINE=1.396, 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 jXhOQhXxmNQ8; Tue, 6 Sep 2011 13:24:52 -0700 (PDT)
Received: from rufus.isode.com (rufus.isode.com [62.3.217.251]) by ietfa.amsl.com (Postfix) with ESMTP id E122521F8E11; Tue, 6 Sep 2011 13:24:51 -0700 (PDT)
Received: from [188.29.162.177] (188.29.162.177.threembb.co.uk [188.29.162.177]) by rufus.isode.com (submission channel) via TCP with ESMTPA id <TmaB9wBpJsEp@rufus.isode.com>; Tue, 6 Sep 2011 21:26:38 +0100
Message-ID: <4E6681DA.7030507@isode.com>
Date: Tue, 06 Sep 2011 21:26:02 +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: "Richard L. Barnes" <rbarnes@bbn.com>
References: <942CCA6B-B784-441B-96CA-3506FFC439E1@bbn.com> <CALiegfmyQ5h4S2FgBnrh2VLr8+q-h0sLiGsww7T+1VwYNRo4wQ@mail.gmail.com> <72E40A0F-C923-472F-9534-538B89F7A444@bbn.com> <634914A010D0B943A035D226786325D422C0EB8D18@EXVMBX020-12.exch020.serverdata.net> <365A444D-CF7D-41A0-A446-7306DE4CDBBC@bbn.com> <c8ic67por9b7638k4cuoqr4blvneo2hlh3@hive.bjoern.hoehrmann.de> <634914A010D0B943A035D226786325D422C0EB8E1A@EXVMBX020-12.exch020.serverdata.net> <634914A010D0B943A035D226786325D422C0EB8E2B@EXVMBX020-12.exch020.serverdata.net> <ABBB8204-4201-4201-8AF1-5BA2A40FB999@bbn.com>
In-Reply-To: <ABBB8204-4201-4201-8AF1-5BA2A40FB999@bbn.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-transfer-encoding: quoted-printable
Cc: Bjoern Hoehrmann <derhoermi@gmx.net>, General Area Review Team <gen-art@ietf.org>, "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] [Gen-art] 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 20:24:52 -0000

Richard L. Barnes wrote:

>>>In total:
>>>
>>>3 bits: opcode of first frame
>>>1 bit: continuation state
>>>4 bit: UTF-8 DFA state
>>>============
>>>
>>>1 octet state
>>>      
>>>
>>forgot of course:
>>
>>for servers:
>>
>>client mask (4 octets)
>>last frame end % 4 : 2 Bits => to know where within mask to start for unmasking the next masked frame received
>>    
>>
>
>Server shouldn't need to remember this, since each fragmented frame comes with its own masking key.  At least that's how I read the spec; there's nothing in Section 5.4 that seems to indicate that masking keys get carried over from one fragment to another.
>  
>
Correct.

>>Plus any extension state as Björn already mentioned.
>>
>>Whatever. There is state anyway. WS is not stateless.
>>    
>>
>Yep.  I was just talking about state related to UTF-8 processing.
>  
>