Re: [hybi] Frame size
Scott Ferguson <ferg@caucho.com> Fri, 16 April 2010 11:40 UTC
Return-Path: <ferg@caucho.com>
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 B520F3A6C11 for <hybi@core3.amsl.com>; Fri, 16 Apr 2010 04:40:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.15
X-Spam-Level:
X-Spam-Status: No, score=0.15 tagged_above=-999 required=5 tests=[BAYES_40=-0.185, IP_NOT_FRIENDLY=0.334, UNPARSEABLE_RELAY=0.001]
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 NMl+1+qpZoN6 for <hybi@core3.amsl.com>; Fri, 16 Apr 2010 04:40:34 -0700 (PDT)
Received: from smtp113.biz.mail.sp1.yahoo.com (smtp113.biz.mail.sp1.yahoo.com [69.147.92.226]) by core3.amsl.com (Postfix) with SMTP id 278B328C13E for <hybi@ietf.org>; Fri, 16 Apr 2010 04:34:53 -0700 (PDT)
Received: (qmail 93253 invoked from network); 16 Apr 2010 11:34:44 -0000
Received: from scott-fergusons-macbook-pro-3.local (ferg@70.231.144.150 with plain) by smtp113.biz.mail.sp1.yahoo.com with SMTP; 16 Apr 2010 04:34:43 -0700 PDT
X-Yahoo-SMTP: L1_TBRiswBB5.MuzAo8Yf89wczFo0A2C
X-YMail-OSG: bJwKadgVM1kh2PWWNehZfF1LW21zH2ewEeNe9qUOeKYmRQ70iNIb9AUPPsc6IExMCEwkdnlbB_1KGhKfj4r7y6eKgvomRB7V6egOQM0U9_LFDDI1d4iLfhUbEsLeM_dorQmPB6xj65zC_wz8_pILmTHPn514gyDZGfW..xqNCP0N_Rj4bkzPZ2LX5nQXVPZuPt9g6hFLdV_E83V1wxhKuL5tXWWvAjQraZTzTdECZJaAEX7XFaLz4Omz8VznwN2COZkDVwS8Cm.JBdx_bhHXFRGHQ2YHAclOblmdh3PFGDbbtN.MspPxxqfFt9QlwS0ZjFOGs4MwXeAu07aszUWazUk-
X-Yahoo-Newman-Property: ymail-3
Message-ID: <4BC84B53.8070804@caucho.com>
Date: Fri, 16 Apr 2010 04:34:43 -0700
From: Scott Ferguson <ferg@caucho.com>
User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228)
MIME-Version: 1.0
To: Justin Erenkrantz <justin@erenkrantz.com>
References: <8B0A9FCBB9832F43971E38010638454F03E3F313ED@SISPE7MB1.commscope.com> <v2m5c902b9e1004160043i7b5ccc79y2346e1b2b2c55cf5@mail.gmail.com>
In-Reply-To: <v2m5c902b9e1004160043i7b5ccc79y2346e1b2b2c55cf5@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: Hybi <hybi@ietf.org>, "Thomson, Martin" <Martin.Thomson@andrew.com>
Subject: Re: [hybi] Frame size
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, 16 Apr 2010 11:40:34 -0000
Justin Erenkrantz wrote: > On Fri, Apr 16, 2010 at 12:22 AM, Thomson, Martin > <Martin.Thomson@andrew.com> wrote: > >> - Sub-protocol needed if messages are larger than the max frame. >> > > One other note from Ireland is that when httpd and tomcat devs talked > about small frame sizes, most people thought that frame sizes in this > range would be artificially limiting - a few folks talked about Comet > apps they've seen transferring large XML files. Silly perhaps, but > that's what the app writers did...trying to get them to change is > pointless. > > IMO, going to 32 bits or even 64 bits simply isn't that much of a > difference - and may actually be easier if it means removing a > sub-protocol or extension - the phrase "premature optimization" was > bandied about in keeping the frame size arbitrarily low. =) > > Anyway, if we flesh out a way up-front to do "jumbo" frames (via an > extension), I think that'd be fine, but I'd be leery of throwing too > much into extensions. > Not exactly, because if you want large frames, you need chunking. Changing the frame size from 2 octets to 4 octets is not sufficient to handle large frames. The two viable options to handle large frames are putting chunking into the WebSockets protocol (like HTTP), or punting to the sub-protocol as Martin suggested. -- Scott > Other than that caveat, I'm okay with what you propose. > > ...snip... > >> IF used for UTF-8 AND implementer counts characters instead of octets THEN framing doesn't work. (One solution to this problem is to start a frame with a known sequence of octets, so that this can be detected. Another "solution" is to not worry about it.) >> > > +1 to "not worry about it". -- justin > _______________________________________________ > hybi mailing list > hybi@ietf.org > https://www.ietf.org/mailman/listinfo/hybi > > > >
- Re: [hybi] Frame size Justin Erenkrantz
- [hybi] Frame size Thomson, Martin
- Re: [hybi] Frame size Roberto Peon
- Re: [hybi] Frame size Scott Ferguson
- Re: [hybi] Frame size Greg Wilkins
- Re: [hybi] Frame size Scott Ferguson
- Re: [hybi] Frame size Roberto Peon
- Re: [hybi] Frame size Ian Hickson
- Re: [hybi] Frame size Scott Ferguson
- Re: [hybi] Frame size Thomson, Martin
- Re: [hybi] Frame size Greg Wilkins
- Re: [hybi] Frame size Justin Erenkrantz
- Re: [hybi] Frame size Greg Wilkins
- Re: [hybi] Frame size Scott Ferguson
- Re: [hybi] Frame size Greg Wilkins
- Re: [hybi] Frame size Thomson, Martin
- Re: [hybi] Frame size Jamie Lokier
- Re: [hybi] Frame size Mike Belshe
- Re: [hybi] Frame size Mike Belshe
- Re: [hybi] Frame size Ian Hickson
- Re: [hybi] Frame size Ian Hickson
- Re: [hybi] Frame size Thomson, Martin
- Re: [hybi] Frame size Mike Belshe
- Re: [hybi] Frame size Ian Hickson
- Re: [hybi] Frame size Jamie Lokier
- Re: [hybi] Frame size Thomson, Martin
- Re: [hybi] Frame size Jamie Lokier
- Re: [hybi] Frame size Mike Belshe
- Re: [hybi] Frame size Jamie Lokier
- Re: [hybi] Frame size Jamie Lokier
- Re: [hybi] Frame size Thomson, Martin
- Re: [hybi] Frame size Jamie Lokier
- Re: [hybi] Frame size Ian Hickson
- Re: [hybi] Frame size Mike Belshe
- Re: [hybi] Frame size Anne van Kesteren
- Re: [hybi] Frame size Thomson, Martin
- Re: [hybi] handshake security (was: Frame size) Thomson, Martin
- Re: [hybi] Frame size Ian Hickson
- Re: [hybi] Frame size Scott Ferguson
- Re: [hybi] handshake security (was: Frame size) Ian Hickson
- Re: [hybi] Frame size Mike Belshe
- Re: [hybi] handshake security (was: Frame size) Thomson, Martin
- Re: [hybi] Frame size Scott Ferguson
- Re: [hybi] Frame size Mike Belshe
- Re: [hybi] handshake security (was: Frame size) Ian Hickson
- Re: [hybi] Frame size Greg Wilkins
- Re: [hybi] Frame size Jamie Lokier
- Re: [hybi] Frame size Jamie Lokier
- Re: [hybi] Frame size Jamie Lokier
- Re: [hybi] Frame size Jamie Lokier
- Re: [hybi] Frame size Mike Belshe
- Re: [hybi] Frame size Mike Belshe
- Re: [hybi] Frame size Scott Ferguson
- Re: [hybi] Frame size Mike Belshe
- Re: [hybi] Frame size Jamie Lokier
- Re: [hybi] handshake security (was: Frame size) Jamie Lokier
- Re: [hybi] Frame size Lars Eggert
- Re: [hybi] Frame size Jamie Lokier