Re: [hybi] Multiplexing - closing a logical channel
Zhong Yu <zhong.j.yu@gmail.com> Fri, 15 March 2013 15:42 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 51B9321F8835 for <hybi@ietfa.amsl.com>; Fri, 15 Mar 2013 08:42:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.099
X-Spam-Level:
X-Spam-Status: No, score=-3.099 tagged_above=-999 required=5 tests=[AWL=0.500, 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 If3GrTzGZQHL for <hybi@ietfa.amsl.com>; Fri, 15 Mar 2013 08:42:20 -0700 (PDT)
Received: from mail-oa0-f49.google.com (mail-oa0-f49.google.com [209.85.219.49]) by ietfa.amsl.com (Postfix) with ESMTP id 9422221F8838 for <hybi@ietf.org>; Fri, 15 Mar 2013 08:42:20 -0700 (PDT)
Received: by mail-oa0-f49.google.com with SMTP id j6so3590792oag.36 for <hybi@ietf.org>; Fri, 15 Mar 2013 08:42:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=E76B4lHPfNX+TKF8ELj2m/lRgbHZJy98gAVSzOUcr1k=; b=AYLJ5mePVBbXCMWodyHgwvYh3Bd8x5CREP6fsyiOxr6nqkLYQRDaSMxs/azAjNPyTG kwVrY0EA3J9H5dhSoOdK0rQsVDwcvOySVEPpTWHggxC2Y675kiWyOB7uskIK9tMCM1hM Xn5D393NdkN1GSc2nwHeTFOGpL9txRPdHZkGaHmRrs0bODMzK+9DuiNczg4dyEX43OKY JwDnvFYhYJWx+lymJ2ErkejaKbukz/tFFagT+JHxJGpcUALH7dd0Le4m3biy+ovYxNsn Mwjplc3sitf6oeMz3I+6VrZB627h+qdu/vnJP1/OVWy9/R7eqQm+X5yW6gZ1CXjwkI6k pvaA==
MIME-Version: 1.0
X-Received: by 10.60.170.20 with SMTP id ai20mr3219923oec.33.1363362140177; Fri, 15 Mar 2013 08:42:20 -0700 (PDT)
Received: by 10.76.22.130 with HTTP; Fri, 15 Mar 2013 08:42:19 -0700 (PDT)
In-Reply-To: <CAH9hSJbP-774Jg4HjJr_3FqxAy+yjZznOME-jk8BS7CYjJqFxQ@mail.gmail.com>
References: <CACuKZqHvd64ZfPNNK2Ov=QqXRqbgN5YaWYiBO6Ka-JWg2N5tzw@mail.gmail.com> <CAH9hSJbP-774Jg4HjJr_3FqxAy+yjZznOME-jk8BS7CYjJqFxQ@mail.gmail.com>
Date: Fri, 15 Mar 2013 10:42:19 -0500
Message-ID: <CACuKZqEhSD6DEY=N9Qo=f-9QdM5miCBad3Qc6WVGqdK2=NHBRA@mail.gmail.com>
From: Zhong Yu <zhong.j.yu@gmail.com>
To: Takeshi Yoshino <tyoshino@google.com>
Content-Type: text/plain; charset="ISO-8859-1"
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 15:42:21 -0000
Got it, thanks. Another question, http://tools.ietf.org/html/draft-ietf-hybi-thewebsocketprotocol-17#section-5.5.1 5.5.1. Close The application MUST NOT send any more data frames after sending a close frame. doe it imply that more control frames may be sent after a close frame? Zhong Yu On Fri, Mar 15, 2013 at 3:50 AM, Takeshi Yoshino <tyoshino@google.com> wrote: > 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
- [hybi] Multiplexing - closing a logical channel Zhong Yu
- Re: [hybi] Multiplexing - closing a logical chann… Takeshi Yoshino
- Re: [hybi] Multiplexing - closing a logical chann… Zhong Yu
- Re: [hybi] Multiplexing - closing a logical chann… Takeshi Yoshino