Re: [hybi] Clarify the role of closing handshake
Greg Wilkins <gregw@webtide.com> Thu, 10 February 2011 09:43 UTC
Return-Path: <gregw@intalio.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9A20F3A69F4 for <hybi@core3.amsl.com>; Thu, 10 Feb 2011 01:43:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.374
X-Spam-Level:
X-Spam-Status: No, score=-2.374 tagged_above=-999 required=5 tests=[AWL=0.603, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KH7gls3HLgHi for <hybi@core3.amsl.com>; Thu, 10 Feb 2011 01:43:53 -0800 (PST)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id 5A0D23A6961 for <hybi@ietf.org>; Thu, 10 Feb 2011 01:43:53 -0800 (PST)
Received: by vws7 with SMTP id 7so743177vws.31 for <hybi@ietf.org>; Thu, 10 Feb 2011 01:44:04 -0800 (PST)
MIME-Version: 1.0
Received: by 10.220.194.1 with SMTP id dw1mr5488922vcb.179.1297331043847; Thu, 10 Feb 2011 01:44:03 -0800 (PST)
Sender: gregw@intalio.com
Received: by 10.220.77.205 with HTTP; Thu, 10 Feb 2011 01:44:03 -0800 (PST)
In-Reply-To: <CA566BAEAD6B3F4E8B5C5C4F61710C1126E04F34@TK5EX14MBXW605.wingroup.windeploy.ntdev.microsoft.com>
References: <AANLkTi=wAwQHGbu_vVS5o9yNuC-M=e_hWwtU5F6UPGqm@mail.gmail.com> <AANLkTimGHPmGSB1hCr2VJ3O8bFJiEkvdkvqptt6A8mBA@mail.gmail.com> <CA566BAEAD6B3F4E8B5C5C4F61710C1126E04F34@TK5EX14MBXW605.wingroup.windeploy.ntdev.microsoft.com>
Date: Thu, 10 Feb 2011 20:44:03 +1100
X-Google-Sender-Auth: NsE9hIfhzlCmmNQMvpN--tZMiPI
Message-ID: <AANLkTimRezbkgnicmSqhX+Go5UYAazTU9WWHpH8oe_7K@mail.gmail.com>
From: Greg Wilkins <gregw@webtide.com>
To: Gabriel Montenegro <Gabriel.Montenegro@microsoft.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: "hybi@ietf.org" <hybi@ietf.org>
Subject: Re: [hybi] Clarify the role of closing handshake
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/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: Thu, 10 Feb 2011 09:43:54 -0000
On 10 February 2011 20:25, Gabriel Montenegro <Gabriel.Montenegro@microsoft.com> wrote: > I think your simple reason would be enough (either normal or abnormal close for now). cool > To be clear: you're not arguing against the simplified semantics of considering the websocket closed (no further data or control) upon either sending or receiving a Close message, correct? I'm not arguing either way. I can see the benefits of half close and flush through, but also the complexities, so I'm happy to follow herd on this one. cheers >> -----Original Message----- >> From: hybi-bounces@ietf.org [mailto:hybi-bounces@ietf.org] On Behalf Of Greg >> Wilkins >> Sent: Wednesday, February 09, 2011 17:04 >> To: Takeshi Yoshino >> Cc: hybi@ietf.org >> Subject: Re: [hybi] Clarify the role of closing handshake >> >> One of the other aims of the closing handshake was to better identify error >> condition, so as to prevent a client repeating unacceptable operations. >> >> For example, if a client sends a frame that is too large for the server to handle, >> the server needs to indicate that an error condition has occurred. If the >> connection is closed (orderly or otherwise) , then the client might assume that it >> was an idle shutdown or transient condition on the server and thus open a new >> connection and continue to send over large frames. >> >> >> Currently -05 says: >> >> 7.1.2. Server-initiated closure >> Certain algorithms require or recommend that the server *abort the >> WebSocket connection* during the opening handshake. To do so, the >> server must simply close the WebSocket connection. >> >> >> the problem with this is that for a client such a close of the websocket >> connection cannot be distinguished from a >> network/intermediary failure. I think that typically an aborted >> connection should not be retried, but a network/intermediary failure should be - >> so it would be good to be able to signal to the client the difference. >> >> Thus I'd like to suggest that the close handshake carry a single byte of reason for >> the close. >> I think it would be sufficient to define just: >> >> 0x00 Normal close >> 0x01 Abnormal close >> >> But I could see an argument for something a little richer: >> >> 0x00 Idle close >> 0x01 close >> 0x02 abnormal close >> >> but I concede that the danger here is trying to define too many close states >> _______________________________________________ >> hybi mailing list >> hybi@ietf.org >> https://www.ietf.org/mailman/listinfo/hybi > >
- Re: [hybi] Clarify the role of closing handshake Yutaka_Takeda
- Re: [hybi] Clarify the role of closing handshake Gabriel Montenegro
- [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake John Tamplin
- Re: [hybi] Clarify the role of closing handshake Greg Wilkins
- Re: [hybi] Clarify the role of closing handshake Gabriel Montenegro
- Re: [hybi] Clarify the role of closing handshake Greg Wilkins
- Re: [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake Yutaka_Takeda
- Re: [hybi] Clarify the role of closing handshake Brodie Thiesfield
- Re: [hybi] Clarify the role of closing handshake Gabriel Montenegro
- Re: [hybi] Clarify the role of closing handshake Greg Wilkins
- Re: [hybi] Clarify the role of closing handshake Brodie Thiesfield
- Re: [hybi] Clarify the role of closing handshake Salvatore Loreto
- Re: [hybi] Clarify the role of closing handshake Yutaka_Takeda
- Re: [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake Yutaka_Takeda
- Re: [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake Gabriel Montenegro
- Re: [hybi] Clarify the role of closing handshake Andy Green
- Re: [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake Yutaka_Takeda
- Re: [hybi] Clarify the role of closing handshake Yutaka_Takeda
- Re: [hybi] Clarify the role of closing handshake Gabriel Montenegro
- Re: [hybi] Clarify the role of closing handshake Yutaka_Takeda
- Re: [hybi] Clarify the role of closing handshake John Tamplin
- Re: [hybi] Clarify the role of closing handshake Brian
- Re: [hybi] Clarify the role of closing handshake Peter Saint-Andre
- Re: [hybi] Clarify the role of closing handshake Yutaka_Takeda
- Re: [hybi] Clarify the role of closing handshake Ian Fette (イアンフェッティ)
- Re: [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake Justin Lee
- Re: [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake Yutaka_Takeda
- Re: [hybi] Clarify the role of closing handshake Brodie Thiesfield
- Re: [hybi] Clarify the role of closing handshake Yutaka_Takeda
- Re: [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake Takeshi Yoshino
- Re: [hybi] Clarify the role of closing handshake Gabriel Montenegro
- Re: [hybi] Clarify the role of closing handshake Yutaka_Takeda