Re: [hybi] hum #3: Message

Douglas Otis <dotis@mail-abuse.org> Fri, 06 August 2010 20:44 UTC

Return-Path: <dotis@mail-abuse.org>
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 BB2603A67ED for <hybi@core3.amsl.com>; Fri, 6 Aug 2010 13:44:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.343
X-Spam-Level:
X-Spam-Status: No, score=-106.343 tagged_above=-999 required=5 tests=[AWL=0.256, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 ROybpltFpl5z for <hybi@core3.amsl.com>; Fri, 6 Aug 2010 13:44:10 -0700 (PDT)
Received: from harry.mail-abuse.org (harry.mail-abuse.org [168.61.5.27]) by core3.amsl.com (Postfix) with ESMTP id DE01C3A67D4 for <hybi@ietf.org>; Fri, 6 Aug 2010 13:44:10 -0700 (PDT)
Received: from sjc-office-nat-210.mail-abuse.org (gateway1.sjc.mail-abuse.org [168.61.5.81]) by harry.mail-abuse.org (Postfix) with ESMTP id 8757BA946A3 for <hybi@ietf.org>; Fri, 6 Aug 2010 20:44:40 +0000 (UTC)
Message-ID: <4C5C7438.2020806@mail-abuse.org>
Date: Fri, 06 Aug 2010 13:44:40 -0700
From: Douglas Otis <dotis@mail-abuse.org>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: hybi@ietf.org
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> <2286.1281125984.341043@puncture>
In-Reply-To: <2286.1281125984.341043@puncture>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
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:44:11 -0000

On 8/6/10 1:19 PM, Dave Cridland wrote:
> 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.
+1

-Doug