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

Dave Cridland <dave@cridland.net> Thu, 05 August 2010 16:52 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 A6E123A684F for <hybi@core3.amsl.com>; Thu, 5 Aug 2010 09:52:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.477
X-Spam-Level:
X-Spam-Status: No, score=-2.477 tagged_above=-999 required=5 tests=[AWL=0.122, 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 XdOBJxYNetcu for <hybi@core3.amsl.com>; Thu, 5 Aug 2010 09:52:40 -0700 (PDT)
Received: from peirce.dave.cridland.net (peirce.dave.cridland.net [217.155.137.61]) by core3.amsl.com (Postfix) with ESMTP id 4C6A93A6925 for <hybi@ietf.org>; Thu, 5 Aug 2010 09:52:39 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by peirce.dave.cridland.net (Postfix) with ESMTP id AC21C116809F; Thu, 5 Aug 2010 17:53:04 +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 ZlVCDYJwUeqn; Thu, 5 Aug 2010 17:53:03 +0100 (BST)
Received: from puncture (puncture [217.155.137.60]) by peirce.dave.cridland.net (Postfix) with ESMTPA id 412AC116809E; Thu, 5 Aug 2010 17:53:03 +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> <AANLkTimWeL5Td0_H0+q+p=CpPqy-GAdhiKxqr5yyGNzL@mail.gmail.com> <2286.1281023493.052316@puncture> <AANLkTimw-YugoJjORDhMrDDx7_EXpT1_Y0qHcQQT+BWz@mail.gmail.com>
In-Reply-To: <AANLkTimw-YugoJjORDhMrDDx7_EXpT1_Y0qHcQQT+BWz@mail.gmail.com>
MIME-Version: 1.0
Message-Id: <2286.1281027183.253876@puncture>
Date: Thu, 05 Aug 2010 17:53:03 +0100
From: Dave Cridland <dave@cridland.net>
To: John Tamplin <jat@google.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 16:52:42 -0000

On Thu Aug  5 17:09:50 2010, John Tamplin wrote:
> On Thu, Aug 5, 2010 at 11:51 AM, Dave Cridland <dave@cridland.net>  
> wrote:
> > Imagine we have frame-based compression (I know this still up for  
> debate,
> >> though I think a good case has been made that we need to be able  
> to
> >> compress
> >> some payloads and not others).
> >>
> >
> > Oh, sure. But that doesn't mean we need to have compression at  
> the frame
> > layer.
> 
> 
> What would you suggest?  If the entire stream is compressed (which  
> has been
> proposed as an alternative to having per-frame compression [which  
> itself
> might still share a compression state across frames]), how do you  
> send some
> payload frames uncompressed?
> 
> 
DEFLATE, for example, includes ways of transferring blocks of  
uncompressed data. Tweaking the compression strategy on the fly is  
perfectly reasonable.



> > I think the definition of a message is something that an  
> application
> > programmer can sensibly write code to react to, so I'd disagree.
> 
> 
> If nothing else, updating a progress indicator for downloads of  
> such large
> content seems sensible.  It also seems reasonable that media could  
> be
> started playing before all of it has been received.

I'm basically happy with that concept. It does mean exposing the  
chunkiness to the Javascript layer to an extent, though.

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