Re: [hybi] Clarify the role of closing handshake

Peter Saint-Andre <stpeter@stpeter.im> Tue, 15 February 2011 20:33 UTC

Return-Path: <stpeter@stpeter.im>
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 CBEE83A6D52 for <hybi@core3.amsl.com>; Tue, 15 Feb 2011 12:33:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level:
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
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 Gc0jYaopVQau for <hybi@core3.amsl.com>; Tue, 15 Feb 2011 12:33:04 -0800 (PST)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 0DACB3A6C43 for <hybi@ietf.org>; Tue, 15 Feb 2011 12:33:04 -0800 (PST)
Received: from dhcp-64-101-72-185.cisco.com (dhcp-64-101-72-185.cisco.com [64.101.72.185]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 8127E400F6 for <hybi@ietf.org>; Tue, 15 Feb 2011 13:51:33 -0700 (MST)
Message-ID: <4D5AE318.9080308@stpeter.im>
Date: Tue, 15 Feb 2011 13:33:28 -0700
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version: 1.0
To: hybi@ietf.org
References: <CA566BAEAD6B3F4E8B5C5C4F61710C1126E1534D@TK5EX14MBXW605.wingroup.windeploy.ntdev.microsoft.com> <OF5442EF1E.2B5095C9-ON88257838.006DA28B-88257838.00702999@playstation.sony.com> <AANLkTi=Y+_xERQ+ED9HEZwX+u46CW4cOYu8cB32QKjrF@mail.gmail.com>
In-Reply-To: <AANLkTi=Y+_xERQ+ED9HEZwX+u46CW4cOYu8cB32QKjrF@mail.gmail.com>
X-Enigmail-Version: 1.1.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha1"; boundary="------------ms080600060405090200080409"
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: Tue, 15 Feb 2011 20:33:06 -0000

On 2/15/11 1:30 PM, Brian wrote:

> If you need, with websocket, to detect that the user's gone
> away (such as for an IM system to show that they're offline), you can
> do that on the server when you detect the connection is closed.  If
> you're using xhr-polling or similar, a reasonably short timeout on the
> server during which the user doesn't reconnect for more data should
> suffice as a suitable "user has gone away" event.

Agreed. And this is what we do in IM systems like XMPP (whether using
the TCP binding or BOSH).

Peter

-- 
Peter Saint-Andre
https://stpeter.im/