Re: [hybi] Straw poll: Do you miss interjectable WebSocket level control frame? (was: Re: Discontinuation of mux ...)

Takeshi Yoshino <tyoshino@google.com> Wed, 26 February 2014 17:53 UTC

Return-Path: <tyoshino@google.com>
X-Original-To: hybi@ietfa.amsl.com
Delivered-To: hybi@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 85D341A0761 for <hybi@ietfa.amsl.com>; Wed, 26 Feb 2014 09:53:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.925
X-Spam-Level:
X-Spam-Status: No, score=-1.925 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RP_MATCHES_RCVD=-0.547, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LMb4815399HH for <hybi@ietfa.amsl.com>; Wed, 26 Feb 2014 09:53:08 -0800 (PST)
Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) by ietfa.amsl.com (Postfix) with ESMTP id 5A79F1A0739 for <hybi@ietf.org>; Wed, 26 Feb 2014 09:53:08 -0800 (PST)
Received: by mail-wi0-f176.google.com with SMTP id hi5so6229167wib.3 for <hybi@ietf.org>; Wed, 26 Feb 2014 09:53:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=R1J6QjTRPLxq1PO/NBAZD0QSQDfsMWElpPPYCH5Jfq8=; b=M6h48IVy6BSkVnCJ4TSq6+YnMXQm0kOkfg+Gn/5HZtbTNRe5fE0vLjeqCiAT5afTxP kv1anY+oqUQ/bzUmtnnfr+oHr/borq30/iTaEutasgtDwEE5u47qqLdO39mnULeiOkqc S8ZvgE7xj3sGuNxtN67YcU4KgtwhhIt2GY8V92GisWs657XMqoEs6vROho7vET5pFhi8 Gnpq6mshkGLw2ejYBnlsNHARTjlHsBPh748R4tvCjB1+xNpuHq1oE6o6V9t5TilV5A72 2KgH01msK4Ir/UnEsg2WDzWSp5pcqkHyAfwOYlYgtz3npFA5bBuWeEMihYmBRNLiKdvA mr3g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=R1J6QjTRPLxq1PO/NBAZD0QSQDfsMWElpPPYCH5Jfq8=; b=OfDpP7+4S0EcggiVPBeU8jDTo503oTlPbnoM/Z+YpAOrhNCFWaFpRiwtYPN+B3wAmF RDTwB00v05+S+4/8un1EsywaCmGFUNpAxMyq6BfGQKzsOVFf4Q3g6QlK9iS8IeHWptxL mYS6jxaoC6IdFsyt9SqRBqc8VBPj6IUioQePRICz+Uoc00j7dn68X0WHHKJSI7R6A6k6 GU+/S0SZko6Pf12xC4IlEdtN4rAgvv+c8JG2AlgziQ/XTRhN6sUyR0gjtic0FSw3HK9T 3SR8cjTUITXhbyt4VgPVqZNG00O9aMJ67SNQOcLwvLJEes5eAlZI8zQU2+RI3gSo1hjc gBfA==
X-Gm-Message-State: ALoCoQls4nidp1Jbt2R/t+T0ZUZNIQ7IEDo0WXEx1Fc+6XB+MVINZYCvPZZVUVFJ0jpKPeI7cGu0b/D2Ld/9ebS3hlyRI+WZcdKUKydTYWJoCGy+C9yZrYbOFxx+jaOJEd0QjupdrNuf2DGnOFEosfWIE08xCbJxjF11Bb4nzi3Y0oblhM/B3YlFm0JRm/r5CT1Hd8CNfzTr
X-Received: by 10.194.6.164 with SMTP id c4mr3674738wja.38.1393437186368; Wed, 26 Feb 2014 09:53:06 -0800 (PST)
MIME-Version: 1.0
Received: by 10.194.8.231 with HTTP; Wed, 26 Feb 2014 09:52:46 -0800 (PST)
In-Reply-To: <alpine.DEB.2.00.1402261734120.31525@ps20323.dreamhostps.com>
References: <CAH9hSJbjQNKnZTJmBFtU8MgmnRTYjPopC4oP_78bWUGap-9CvA@mail.gmail.com> <CAH9hSJbBmvNPBSSAk-khdWXgWw0GTt0FG3KsdzYeJcfiAPDk0A@mail.gmail.com> <CAHixhFq=wfmYH8-ij_WtsQLN=NUTJwRQ=k8jCPepQDM8V8ZZYA@mail.gmail.com> <CABihn6EN7V6XEwf6NWn78orxvr3XjGHxROJC4JjQ6RYYKEeCug@mail.gmail.com> <CACuKZqHNoR5GQmWyzbXAszZCOT2P4pjSmT3SF6ZG3X7hTY=1xw@mail.gmail.com> <CABihn6GC4VM2AHza-F7ML=FfHLZu7FNqx+BhbuVsfJLWk0P92w@mail.gmail.com> <CAH9hSJbSfQ2Abp6oLifi0dx4TZENzm2QRn8zMQfAv=vw+H12sw@mail.gmail.com> <alpine.DEB.2.00.1402261734120.31525@ps20323.dreamhostps.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Thu, 27 Feb 2014 02:52:46 +0900
Message-ID: <CAH9hSJZs01ZuimkLWat8Au+HZ5MPp33x+V5CTbG9OUia=S-8Jw@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Content-Type: multipart/alternative; boundary="047d7b5d256a82c0c804f352e028"
Archived-At: http://mailarchive.ietf.org/arch/msg/hybi/mktsYvQgXAGb3o9BtcG4aHkXKQg
Cc: "hybi@ietf.org" <hybi@ietf.org>, Peter Thorson <webmaster@zaphoyd.com>
Subject: Re: [hybi] Straw poll: Do you miss interjectable WebSocket level control frame? (was: Re: Discontinuation of mux ...)
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.15
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: Wed, 26 Feb 2014 17:53:12 -0000

On Thu, Feb 27, 2014 at 2:35 AM, Ian Hickson <ian@hixie.ch> wrote:

> On Wed, 26 Feb 2014, Takeshi Yoshino wrote:
> >
> > I think it's underspecified. In the WHATWG WebSocket API spec, close()
> > is required to "start the WebSocket closing handshake". RFC 6455 neither
> > says the algorithm may terminate ongoing "Send a WebSocket Message"
> > algorithm nor says it may not.
>
> If it doesn't allow it, then it's not allowed.
>

Yeah, it's kinda twist.

But also it's not strange that people wonder if close frame interjection
like this is ok or not. Actually, even ping/pong sending are not explicitly
allowed to be inserted between "Send a WebSocket Message" algorithm.

The only normative text talking about interjection are this one in
https://tools.ietf.org/html/rfc6455#section-5.5
"Control frames can be interjected in the middle of a fragmented message."
and this in https://tools.ietf.org/html/rfc6455#section-5.4
"Control frames (see Section 5.5) MAY be injected in the middle of a
fragmented message."


>
> If you send a bunch of messages, then start the closing handshake, then
> the messages should all be sent. I don't think there's anything in either
> spec that would allow the handshake to jump ahead.
>

It would be nice if you add some note to the API spec to say "queuing"
doesn't have any implication that the closing handshake can jump in in
response to Zhong's question above.