Re: [hybi] Interface for Large Frames

Francis Brosnan Blázquez <francis@aspl.es> Thu, 23 June 2011 11:18 UTC

Return-Path: <francis@aspl.es>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4B6A511E80B6 for <hybi@ietfa.amsl.com>; Thu, 23 Jun 2011 04:18:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 2.584
X-Spam-Level: **
X-Spam-Status: No, score=2.584 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FH_HOST_ALMOST_IP=1.889, HOST_EQ_STATIC=1.172, HOST_EQ_STATICIP=1.511, HOST_MISMATCH_NET=0.311, MIME_8BIT_HEADER=0.3]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6FeAsMyNKZcL for <hybi@ietfa.amsl.com>; Thu, 23 Jun 2011 04:18:52 -0700 (PDT)
Received: from mail.aspl.es (196.Red-212-170-101.staticIP.rima-tde.net [212.170.101.196]) by ietfa.amsl.com (Postfix) with ESMTP id 9CFF611E807F for <hybi@ietf.org>; Thu, 23 Jun 2011 04:18:52 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mail.aspl.es (Postfix) with ESMTP id D58D01170003; Thu, 23 Jun 2011 13:18:49 +0200 (CEST)
X-Virus-Scanned: amavisd-new at aspl.es
Received: from mail.aspl.es ([127.0.0.1]) by localhost (dolphin.aspl.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vh32gAX1nZIc; Thu, 23 Jun 2011 13:18:48 +0200 (CEST)
Received: from [192.168.0.153] (unknown [89.7.176.101]) (Authenticated sender: acinom) by mail.aspl.es (Postfix) with ESMTPA id 2DA351170001; Thu, 23 Jun 2011 13:18:48 +0200 (CEST)
From: Francis Brosnan Blázquez <francis@aspl.es>
To: "\"Andy Green (林安廸)\"" <andy@warmcat.com>
In-Reply-To: <4E026A1C.2030603@warmcat.com>
References: <20110622145847.ef1fc80126c74c6c202a919c41c7bb0b.c4cc844e80.wbe@email03.secureserver.net> <4E026A1C.2030603@warmcat.com>
Content-Type: text/plain; charset="ISO-8859-15"
Date: Thu, 23 Jun 2011 13:18:49 +0200
Message-Id: <1308827929.11268.63.camel@tot.local>
Mime-Version: 1.0
X-Mailer: Evolution 2.22.3.1
Content-Transfer-Encoding: 8bit
Cc: hybi@ietf.org, Bob Gezelter <gezelter@rlgsc.com>
Subject: Re: [hybi] Interface for Large Frames
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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, 23 Jun 2011 11:18:53 -0000

Hi Andy,

> That's true but it's inherently fragile when 63-bit length frames are 
> allowed by the protocol but cannot be buffered.  It means there's a 
> ceiling where the code must act different or break based on its 
> buffering arrangements.

We have a framing with fragmentation support so each application could
decide how to handle such situations (63 bit frames), in some cases
better than stream oriented API because the application can choose the
chunk size it likes where stream oriented will return what is available
at the call time...

Whatever method used by a websocket implementation (stream oriented or
message/frame notification) I believe it is a contradiction to state
websocket is protocol designed to exchange *units* as messages but not
giving required elements to handle pointed situations, forcing people to
design stream oriented, and hence, force websocket users to
piece/buffering..

> Requiring maximum frame size buffers per connection may also present 
> scaling problems.

At the end, someone will buffer, or the websocket engine or the
application level. I think a checked websocket implementation will
buffer better than an application on top of it so, the scaling problem,
if present, will affect both methods...
-- 
Francis Brosnan Blázquez <francis@aspl.es>
ASPL
91 134 14 22 - 91 134 14 45 - 91 116 07 57

AVISO LEGAL
 
En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
diciembre, de Protección de Datos de Carácter Personal, le informamos de
que sus datos de carácter personal, recogidos de fuentes accesibles al
público o datos que usted nos ha facilitado previamente, proceden de
bases de datos propiedad de Advanced Software Production Line, S.L.
(ASPL).
 
ASPL garantiza que los datos serán tratados con la finalidad de mantener
las oportunas relaciones comerciales o promocionales con usted o la
entidad que usted representa. No obstante, usted puede ejercitar sus
derechos de acceso, rectificación, cancelación y oposición dispuestos en
la mencionada Ley Orgánica, notificándolo por escrito a ASPL -
Protección Datos, C/Antonio Suárez 10 A-102, 28802, Alcalá de Henares
(Madrid).