[hybi] Multiplexing - closing a logical channel

Zhong Yu <zhong.j.yu@gmail.com> Fri, 15 March 2013 01:34 UTC

Return-Path: <zhong.j.yu@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 BC0D011E80F4 for <hybi@ietfa.amsl.com>; Thu, 14 Mar 2013 18:34:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001]
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 QC8Upj53e-uR for <hybi@ietfa.amsl.com>; Thu, 14 Mar 2013 18:34:40 -0700 (PDT)
Received: from mail-ob0-x22a.google.com (mail-ob0-x22a.google.com [IPv6:2607:f8b0:4003:c01::22a]) by ietfa.amsl.com (Postfix) with ESMTP id 4BD9F11E80D5 for <hybi@ietf.org>; Thu, 14 Mar 2013 18:34:40 -0700 (PDT)
Received: by mail-ob0-f170.google.com with SMTP id wc20so2801065obb.29 for <hybi@ietf.org>; Thu, 14 Mar 2013 18:34:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=YHd8SfJF7gvGbUIT1W0KJEFZGPsab9ihNHB2fyjjqL4=; b=bM1QrUJ15Fxq2rhYobLK25IMxaT/sdMljJ7lsRz18fTD6kWB1TLdpk0DUaGtdMNwgl SqL1z6nMQ6WBvf6mt8i7Q91fDN0anSsv5xsbvAYgp8mhPEWeucp24G0DjroabmP1rmb/ 1rqieABgIhKOkGfAGoSfT7sqLlZ5T2I/b/X5pQwJDX4ect3hjl0f8c3i9IJkMbQ9bs0b SSBFV03+DebJPDeRuADMOOMwW+SvklgYWq7K3sQDRXVZAbzqdofqqc4DR18dfYHcTMiZ UNdhRouht/b42TuKVYX9gBpxXOPidZRcG/bahdGM9+SZ6lkeaHXXUA2Lp/l3UO2XWJ1W lB9A==
MIME-Version: 1.0
X-Received: by 10.60.37.229 with SMTP id b5mr2318107oek.21.1363311279657; Thu, 14 Mar 2013 18:34:39 -0700 (PDT)
Received: by 10.76.22.130 with HTTP; Thu, 14 Mar 2013 18:34:39 -0700 (PDT)
Date: Thu, 14 Mar 2013 20:34:39 -0500
Message-ID: <CACuKZqHvd64ZfPNNK2Ov=QqXRqbgN5YaWYiBO6Ka-JWg2N5tzw@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: hybi@ietf.org
Content-Type: text/plain; charset="ISO-8859-1"
Subject: [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 01:34:40 -0000

Hi,

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.

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,
Zhong Yu