Re: [hybi] Framing take IV [why fragment]

Dave Cridland <dave@cridland.net> Thu, 05 August 2010 15:49 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 48A583A67DA for <hybi@core3.amsl.com>; Thu, 5 Aug 2010 08:49:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.472
X-Spam-Level:
X-Spam-Status: No, score=-2.472 tagged_above=-999 required=5 tests=[AWL=0.127, 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 aQK8Dcywmxjw for <hybi@core3.amsl.com>; Thu, 5 Aug 2010 08:49:10 -0700 (PDT)
Received: from peirce.dave.cridland.net (peirce.dave.cridland.net [217.155.137.61]) by core3.amsl.com (Postfix) with ESMTP id C8EC13A67B3 for <hybi@ietf.org>; Thu, 5 Aug 2010 08:49:09 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by peirce.dave.cridland.net (Postfix) with ESMTP id CF37C116809F; Thu, 5 Aug 2010 16:49:39 +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 qQ36hMCE1SbM; Thu, 5 Aug 2010 16:49:38 +0100 (BST)
Received: from puncture (puncture [217.155.137.60]) by peirce.dave.cridland.net (Postfix) with ESMTPA id 7B957116809E; Thu, 5 Aug 2010 16:49:38 +0100 (BST)
References: <AANLkTinyrDoG5d_Ur6HVRy=SgMPjLzJtpJ++Ye=1DQdj@mail.gmail.com> <Pine.LNX.4.64.1008040050040.5947@ps20323.dreamhostps.com> <1280932393.7561.271.camel@tng> <2286.1281017237.786534@puncture> <4C5AD81F.8080800@caucho.com>
In-Reply-To: <4C5AD81F.8080800@caucho.com>
MIME-Version: 1.0
Message-Id: <2286.1281023378.491785@puncture>
Date: Thu, 05 Aug 2010 16:49:38 +0100
From: Dave Cridland <dave@cridland.net>
To: Scott Ferguson <ferg@caucho.com>, Patrick McManus <mcmanus@ducksong.com>, Server-Initiated HTTP <hybi@ietf.org>
Content-Type: text/plain; delsp="yes"; charset="us-ascii"; format="flowed"
Subject: Re: [hybi] Framing take IV [why fragment]
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: Thu, 05 Aug 2010 15:49:11 -0000

On Thu Aug  5 16:26:23 2010, Scott Ferguson wrote:
> Dave Cridland wrote:
>> On Wed Aug  4 15:33:13 2010, Patrick McManus wrote:
>> 
>>> Benefits of streaming:
>>> 
>>> * Reduced memory consumption on the sender in cases where the  
>>> message is
>>> being "passed through". A service that does a large database  
>>> query is a
>>> good example here - the results can be passed back as they are  
>>> found
>>> even before you know how many there are.
>>> 
>>> 
>> No, because the receiver cnnot process portions of messages - at  
>> least with our current API. And you can achieve this behaviour by  
>> sending multiple messages anyway.
> 
> Of course it can. Browser writers are fully capable of buffering  
> the frames until the message is complete and then giving the  
> complete string to the application.
> 
> 
Right, giving no benefit to the application, which was my point.


> The browser developers never complained about the sentinel framing  
> and it has the exact same buffering requirement.

I'm not saying it doesn't. :-)

I am saying that this means this is not a good argument for chunking.

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