Re: [hybi] Multiplexing - closing a logical channel

Takeshi Yoshino <tyoshino@google.com> Fri, 15 March 2013 08:51 UTC

Return-Path: <tyoshino@google.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 35C5721F9098 for <hybi@ietfa.amsl.com>; Fri, 15 Mar 2013 01:51:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.976
X-Spam-Level:
X-Spam-Status: No, score=-102.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, USER_IN_WHITELIST=-100]
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 i81hF77vdolR for <hybi@ietfa.amsl.com>; Fri, 15 Mar 2013 01:51:01 -0700 (PDT)
Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by ietfa.amsl.com (Postfix) with ESMTP id 2007321F9097 for <hybi@ietf.org>; Fri, 15 Mar 2013 01:51:00 -0700 (PDT)
Received: by mail-wg0-f43.google.com with SMTP id e12so2534395wge.22 for <hybi@ietf.org>; Fri, 15 Mar 2013 01:51:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=5uRPb5mMMz+1KMO8oMlXIrCAQnw1yHoXGTsNGEIpREc=; b=V58Ihct46eApyVKAXrfWREv6C6p9vrDZvlNimZLBkE1/NEThUq9JTEmWIXg2ea8Gib tM9CjTq911bD3zCrXzXf1xA5JJsZsTu0il1nTf2XBMZQh5LGGOa0rmhtgppCyeemD+WJ TwIsJOZVoSAWWz90U20Gfx2D7xfk+vNX7EmJidIidDVbELn9M88NNuXjhB+yeuIPNVXB 8jr+S3g4+nhOWqphI5Hl+bVtPWil5+5ViZZ7QkRpOYcKYniiJHCmcWgYtS0kDcl7uduQ vOuSDToxldE4kEjuVepnTC4vvFaK9fsLkpnqjGW6zuhbZ3Tinbj4aZn5KuQr648+itG3 OjIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:x-gm-message-state; bh=5uRPb5mMMz+1KMO8oMlXIrCAQnw1yHoXGTsNGEIpREc=; b=EmZR35JQdAm5IpdqHhshvjqcXAlUPwCXcOWjXjqML2QJOXpoyriLquoDxiWc0DvhXJ hbQVAX2KzwyJGUy7mAcr5uXtRsoNZCX1kKRycHmKmH1krGk6Ficz8+XJIFzw5tWX1gmS zCMClQBPvJ9QKeRcdEdCmUQMqkdqSZNALdl2IEr0KK1DJApoq2BTAbbvwoKM3igGz8+i EkQ4YS2ZtdR29AbAoJRBFG1dR9kEInhj6YZpjrcbJ7750gv65gKCifIyLX6HcwYSoBMy nR13avOtWwfkstAN1BWA5whNaG/L3QjU6wHTW5JnMvaoJBphFsI6HHXNrI2P6NVFoVDl nULw==
X-Received: by 10.194.93.97 with SMTP id ct1mr9150813wjb.48.1363337460145; Fri, 15 Mar 2013 01:51:00 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.194.234.198 with HTTP; Fri, 15 Mar 2013 01:50:40 -0700 (PDT)
In-Reply-To: <CACuKZqHvd64ZfPNNK2Ov=QqXRqbgN5YaWYiBO6Ka-JWg2N5tzw@mail.gmail.com>
References: <CACuKZqHvd64ZfPNNK2Ov=QqXRqbgN5YaWYiBO6Ka-JWg2N5tzw@mail.gmail.com>
From: Takeshi Yoshino <tyoshino@google.com>
Date: Fri, 15 Mar 2013 17:50:40 +0900
Message-ID: <CAH9hSJbP-774Jg4HjJr_3FqxAy+yjZznOME-jk8BS7CYjJqFxQ@mail.gmail.com>
To: Zhong Yu <zhong.j.yu@gmail.com>
Content-Type: multipart/alternative; boundary="047d7bf0c3320578f504d7f2bd05"
X-Gm-Message-State: ALoCoQmIEJt+9mGAiNJ5hOXojZneXmGGi7oc8kDqAZgMtBfK8Ac/kT0oOfj3E16woyjndTAmyg4U3sqDMn6UtRja34+/Emy+5AoYccD/RWVhPafklb9RVwg6Ami+mJ9Fbvd98ESkXo0SsMvkPHFrHHd5/tGn+rDuuEJ9OzLReDU4A4kyNbtgZEn1o5qn1yFKTdnjhkyvtH7d
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Multiplexing - closing a logical channel
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: Fri, 15 Mar 2013 08:51:02 -0000

Hi

On Fri, Mar 15, 2013 at 10:34 AM, Zhong Yu <zhong.j.yu@gmail.com> wrote:

> A vanilla WebSocket connection can be half-closed, i.e.
>
>     X sends a close frame to Y,
>     then continues to read frames from Y.
>
>     Y receives a close frame from X,
>     but continues to send data frames to X.
>
> However the multiplexing draft seems to require that a logical channel
> cannot do that - a logical channel is either active or inactive, as
> soon as it becomes inactive, by sending or receiving DropChannel, the
> channel cannot be used further, on either direction.
>

Sending a DropChannel corresponds to TCP closure ("Close the WebSocket
Connection" operation in RFC 6455).

WebSocket endpoints can make their connections half-closed even on mux.

See
http://tools.ietf.org/html/draft-ietf-hybi-websocket-multiplexing-09#section-19
.


> If my understanding is correct, then I wonder what's the reason for
> this behavior? Why don't we allow close frames exchanged on a logical
> channel so that the closing process of a logical channel is consistent
> with that of a vanilla WebSocket connection?
>

Thanks
Takeshi