Re: [hybi] hum #3: Message

Dave Cridland <dave@cridland.net> Fri, 06 August 2010 20:19 UTC

Return-Path: <dave@cridland.net>
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 06C0C3A6901 for <hybi@core3.amsl.com>; Fri, 6 Aug 2010 13:19:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.489
X-Spam-Level:
X-Spam-Status: No, score=-2.489 tagged_above=-999 required=5 tests=[AWL=0.110, BAYES_00=-2.599]
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 z0MDWR5W6xTg for <hybi@core3.amsl.com>; Fri, 6 Aug 2010 13:19:16 -0700 (PDT)
Received: from peirce.dave.cridland.net (peirce.dave.cridland.net [217.155.137.61]) by core3.amsl.com (Postfix) with ESMTP id 95E473A657C for <hybi@ietf.org>; Fri, 6 Aug 2010 13:19:15 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by peirce.dave.cridland.net (Postfix) with ESMTP id 366AA116809F; Fri, 6 Aug 2010 21:19:46 +0100 (BST)
X-Virus-Scanned: Debian amavisd-new at peirce.dave.cridland.net
Received: from peirce.dave.cridland.net ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HWNZcR-WRcfz; Fri, 6 Aug 2010 21:19:44 +0100 (BST)
Received: from puncture (puncture [217.155.137.60]) by peirce.dave.cridland.net (Postfix) with ESMTPA id 567A3116809E; Fri, 6 Aug 2010 21:19:44 +0100 (BST)
References: <4C5AE93D.4040803@ericsson.com> <Pine.LNX.4.64.1008051758290.5947@ps20323.dreamhostps.com> <AANLkTik0kbh14s2JZARY2MFh0iNGV7H+B4Px4yG+wX44@mail.gmail.com> <71BCE4BF-D3F6-4F94-BE76-306BDF6A2E67@apple.com> <Pine.LNX.4.64.1008051930160.5947@ps20323.dreamhostps.com> <4C5B1695.6070704@gmx.de> <F8E2F702-9F74-4316-B3B2-D5A731409ABF@apple.com> <AANLkTin=gO9D8K5NVhqCRKki-jrDmTYqF-gBjp9X41GN@mail.gmail.com> <4C5BF15E.1090608@noemax.com> <AANLkTinXLPmBACd3ji0V9wkAWmxOR7qBMED19KKMvJrd@mail.gmail.com> <AANLkTi=RWdqDDgy24C6qtUSr+5R5p=P15B=+aUZuE16Q@mail.gmail.com> <4C5C07D6.1030208@noemax.com> <AANLkTimj9RvzL8E+FmH=vT_TeECVNmDPXY0ymPnvBHSZ@mail.gmail.com>
In-Reply-To: <AANLkTimj9RvzL8E+FmH=vT_TeECVNmDPXY0ymPnvBHSZ@mail.gmail.com>
MIME-Version: 1.0
Message-Id: <2286.1281125984.341043@puncture>
Date: Fri, 06 Aug 2010 21:19:44 +0100
From: Dave Cridland <dave@cridland.net>
To: John Tamplin <jat@google.com>, Server-Initiated HTTP <hybi@ietf.org>
Content-Type: text/plain; delsp="yes"; charset="us-ascii"; format="flowed"
Subject: Re: [hybi] hum #3: Message
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: Fri, 06 Aug 2010 20:19:17 -0000

On Fri Aug  6 15:17:19 2010, John Tamplin wrote:
> Ok, does this summarize the various positions regarding chunking and
> lengths?
> 
> 
>    - We want to have a length of the complete message when it is  
> available
>    to make buffer management simpler for the receiver
>    - We want to be able to fragment messages to avoid extra  
> buffering when
>    the length of the entire message is not known up front, such as  
> when sending
>    dynamic content, compressing frames, etc.
>    - We want to keep small frames having small overhead (though  
> there is a
>    limit on how much this matters given TCP/IP overhead)
>    - We want to be able to send very large files in a single  
> fragment so we
>    can just hand it off to sendfile or equivalent
> 
> What about the following:
> 
>    - 1 bit - Initial fragment
>    - 1 bit - Final fragment
>    - 1 bit - reserved
>    - 5 bits - opcode
>    - 8 bits - short length
>    - [if length = 255: 8 bytes - length]
>    - [if Initial = 1 and Final = 0: 8 bytes - overall message  
> length, with 0
>    meaning "unknown"]
>    - length bytes of payload

I'm fine with this.

It feels like a solid starting point.

Dave.
-- 
Dave Cridland - mailto:dave@cridland.net - xmpp:dwd@dave.cridland.net
  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
  - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade