Re: [hybi] RFC 6455 WebSockets Frame to Message assembly

Joakim Erdfelt <joakim@intalio.com> Sat, 09 March 2013 00:35 UTC

Return-Path: <joakim@intalio.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 971D121F8621 for <hybi@ietfa.amsl.com>; Fri, 8 Mar 2013 16:35:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.976
X-Spam-Level:
X-Spam-Status: No, score=-2.976 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, 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 DHlpeQUezTpP for <hybi@ietfa.amsl.com>; Fri, 8 Mar 2013 16:35:40 -0800 (PST)
Received: from mail-ee0-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) by ietfa.amsl.com (Postfix) with ESMTP id 5F1DD21F861F for <hybi@ietf.org>; Fri, 8 Mar 2013 16:35:40 -0800 (PST)
Received: by mail-ee0-f51.google.com with SMTP id d17so1311163eek.38 for <hybi@ietf.org>; Fri, 08 Mar 2013 16:35:39 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=Vldcx9YjstsnbzdCEcGQojAmGfsgL7hq852gkjoqYw8=; b=XcFjwzby2SH/uExrIZEjxZq54iv31DwROH9uxLNUie9SSnZZG2RKv+y5h4edLr13Q7 17zBuOUyD8BsRq/XBeFHKouROfeerRCM1TYlvqWcWeeuGZC4RQU/sSlhrq9QPT9ov0+g NOfQbxE4X3J1X0Vw2JlwSgYO2JX40yawEz/UbpykqOY76p6pK5fJQlDTI/79sMwa2WBY OWf4DtsQcVI4LLYR7FlvekSiipix+54VjL+1gCFpM+vA935e98bb9QefSOdyQDfG1G8L t2huzZZPoYsBjvDEtFwbHFyAvQ/FAP4I9At/VoULo4tyM1Hr+s/1gacWTB1fxctwR9LU 3DOg==
MIME-Version: 1.0
X-Received: by 10.14.210.8 with SMTP id t8mr10895618eeo.35.1362789339459; Fri, 08 Mar 2013 16:35:39 -0800 (PST)
Received: by 10.14.99.4 with HTTP; Fri, 8 Mar 2013 16:35:39 -0800 (PST)
In-Reply-To: <CANEdHmhxYJu24c-E=YL16dksJURsLNc3zUiwFdu02Yq2b7MVxg@mail.gmail.com>
References: <CANEdHmhxYJu24c-E=YL16dksJURsLNc3zUiwFdu02Yq2b7MVxg@mail.gmail.com>
Date: Fri, 08 Mar 2013 17:35:39 -0700
Message-ID: <CAG4zZZAu4q0VXXatZDLs58ZPMNZ04=ydjeW_YYnUL9V6-MBFrQ@mail.gmail.com>
From: Joakim Erdfelt <joakim@intalio.com>
To: Scott Morgan <scott@adligo.com>
Content-Type: multipart/alternative; boundary="047d7b603fe27baebe04d7731e10"
X-Gm-Message-State: ALoCoQlSdUpQu5/KkNaG2s89q+Uv+B4iKNXpqNQaG4G6z+EsQT/f82VwppylU91L+6UT8xernuFc
Cc: hybi@ietf.org
Subject: Re: [hybi] RFC 6455 WebSockets Frame to Message assembly
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: Sat, 09 Mar 2013 00:35:42 -0000

You can't interleave websocket messages like that over a single websocket
connection.

You have to finish all the frames for one websocket message before you can
start another websocket message.

--
Joakim Erdfelt <joakim@intalio.com>
webtide.com <http://www.webtide.com/>
Developer advice, services and support
from the Jetty & CometD experts
eclipse.org/jetty - cometd.org


On Fri, Mar 8, 2013 at 5:29 PM, Scott Morgan <scott@adligo.com> wrote:

> Hi Again,
>
>    Again I am sorry if these comments are in the wrong place (email list).
>
> I have been reading;
> http://webtide.intalio.com/2012/10/jetty-9-updated-websocket-api/
>
> I have been wondering how multiple multiple frame messages would share a
> connection and get reassembled.   The specification doen't seem to mention
> this;
> Ie
> Fancy multithreaded Client Sends 2 messages over a single socket;
>     Frame A, part One of 20,000 leagues under the sea
>     Frame B, part One of The Hobbit
>     Frame C, part Two of 20,000 leagues under the sea
>     Frame D, part Two of the Hobbit yea
>
> How should the frames be identified as belonging to the Hobbit?
> I suggest we use the masking key as a id, however I am not sure if it
> would be unique enough.
>
>
> Cheers,
> Scott
>
> _______________________________________________
> hybi mailing list
> hybi@ietf.org
> https://www.ietf.org/mailman/listinfo/hybi
>
>