Re: [hybi] Changing meaning of 1007 status code ("frame" => "message")

Philipp Serafin <phil127@gmail.com> Tue, 06 September 2011 16:23 UTC

Return-Path: <phil127@gmail.com>
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 1741021F8B8F for <hybi@ietfa.amsl.com>; Tue, 6 Sep 2011 09:23:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.541
X-Spam-Level:
X-Spam-Status: No, score=-3.541 tagged_above=-999 required=5 tests=[AWL=0.058, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FECo0sLKZs0i for <hybi@ietfa.amsl.com>; Tue, 6 Sep 2011 09:23:28 -0700 (PDT)
Received: from mail-bw0-f44.google.com (mail-bw0-f44.google.com [209.85.214.44]) by ietfa.amsl.com (Postfix) with ESMTP id 3FA4E21F8B8D for <hybi@ietf.org>; Tue, 6 Sep 2011 09:23:28 -0700 (PDT)
Received: by bkar4 with SMTP id r4so6567482bka.31 for <hybi@ietf.org>; Tue, 06 Sep 2011 09:25:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=08sJc5njYfeDqgII+aaA4Q90XO6dNozqnai/ZpbGqY0=; b=gHD11rv4M1Z5myLTmlHXxsR0+T0yc3NvA0GZsf4SHTPZe7VOhd/P+qFcQDChTo9WtT Wva+m7gUDGzhlQTLnWrUzwxoI1MyA5yFSO3kr1kFwRUGngPgBtp+dB4NM3NWdKK5XdkV Os9KbKjXJIXlQCAlph/QVEqH5TBzNCQ6IwNB0=
Received: by 10.204.146.141 with SMTP id h13mr2997066bkv.244.1315326313939; Tue, 06 Sep 2011 09:25:13 -0700 (PDT)
Received: from [212.201.78.87] (pptp-212-201-78-87.pptp.stw-bonn.de [212.201.78.87]) by mx.google.com with ESMTPS id z7sm976143bkt.5.2011.09.06.09.25.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Sep 2011 09:25:13 -0700 (PDT)
Message-ID: <4E664964.2080601@gmail.com>
Date: Tue, 06 Sep 2011 18:25:08 +0200
From: Philipp Serafin <phil127@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1
MIME-Version: 1.0
To: Tobias Oberstein <tobias.oberstein@tavendo.de>, Hybi <hybi@ietf.org>
References: <CALiegf=D5K9H0uckc_zLVbaLieyu082g8kooAXa-3LkG+g_XGQ@mail.gmail.com> <634914A010D0B943A035D226786325D422C0EB8DB1@EXVMBX020-12.exch020.serverdata.net>
In-Reply-To: <634914A010D0B943A035D226786325D422C0EB8DB1@EXVMBX020-12.exch020.serverdata.net>
X-Enigmail-Version: 1.3.1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Subject: Re: [hybi] Changing meaning of 1007 status code ("frame" => "message")
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: Tue, 06 Sep 2011 16:23:29 -0000

Am 06.09.2011 17:54, schrieb Tobias Oberstein:
> No, thats not WS. WS itself is not a message based, but framed
> streaming protocol.
>> - The WS transport layer receives control frames and send control frames to
>> the other endpoint.
>> - The WS transport layer gives received *messages* to the WS application
>> layer (it doesn't matter giving the full buffered message or using straming).
> No, I have 3 types of API: message-based, frame-based and streaming.
I can understand the rationale for a streaming-based API (though I don't
see why already established multimedia protocols like SIP, RTSP or RTMP
wouldn't be a better choice here) but why would we both need
message-based *and* frame-based APIs?

Frames may be arbitrary buffered by intermediaries, the current
javascript API hides frames completely and, as previously discussed, you
can't be sure that a frame belonging to a text message actually contains
valid UTF-8. All of that seem to make them a decidedly bad choice for me
to base your API on. What additional benefits compared to a
message-based API would that give you?