Re: [xmpp] 3921bis: probe + unavailable

Peter Saint-Andre <stpeter@stpeter.im> Fri, 29 January 2010 22:26 UTC

Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A5ACD3A6842 for <xmpp@core3.amsl.com>; Fri, 29 Jan 2010 14:26:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 GeIHrGxpRP2L for <xmpp@core3.amsl.com>; Fri, 29 Jan 2010 14:26:14 -0800 (PST)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 8928C3A677C for <xmpp@ietf.org>; Fri, 29 Jan 2010 14:26:14 -0800 (PST)
Received: from dhcp-64-101-72-234.cisco.com (dhcp-64-101-72-234.cisco.com [64.101.72.234]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id B1F9540126 for <xmpp@ietf.org>; Fri, 29 Jan 2010 15:26:37 -0700 (MST)
Message-ID: <4B63609C.2000702@stpeter.im>
Date: Fri, 29 Jan 2010 15:26:36 -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.1.7) Gecko/20100111 Thunderbird/3.0.1
MIME-Version: 1.0
To: xmpp@ietf.org
References: <4B6202CF.6070702@stpeter.im> <14795.1264714828.295077@puncture> <42E4D3A6-6F8A-4005-8563-18F8CF934971@webkeks.org> <4B62F78E.1030400@stpeter.im> <12A2144C-5AEB-44B4-BFC6-C8D8DC66CC3E@webkeks.org>
In-Reply-To: <12A2144C-5AEB-44B4-BFC6-C8D8DC66CC3E@webkeks.org>
X-Enigmail-Version: 1.0
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha1"; boundary="------------ms040805060107010203030901"
Subject: Re: [xmpp] 3921bis: probe + unavailable
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 29 Jan 2010 22:26:15 -0000

On 1/29/10 2:13 PM, Jonathan Schleifer wrote:
> Am 29.01.2010 um 15:58 schrieb Peter Saint-Andre:
> 
>> On 1/29/10 5:41 AM, Jonathan Schleifer wrote:
>>> Am 28.01.2010 um 22:40 schrieb Dave Cridland:
>>>
>>>> So a note's needed at minimum to explain that this didn't used to be a
>>>> requirement, and clients (and servers) SHOULD cope with no response as
>>>> meaning unavailable.
>>
>> The default is always unavailable. If you receive positive <presence/>
>> then you have some clue that the contact is online. If not, not. If you
>> receive a definitive answer that the contact is offline, that's even
>> better, but you can never assume that the contact is online.
>>
>>> The problem with that is: How do you figure out if you don't get a
>>> response or if you are just still waiting for it? We should define a
>>> sane timeout here, I guess, to prevent incompatibilities. This also
>>> means we need to figure out a sane value that even works with bad
>>> connections.
>>
>> I don't see a good reason to go down that path, which introduces more
>> complexity into clients.
> 
> So you suggest to assume all presences you already received as invalid
> when you send a presence probe and only take those into account that you
> got after the probe? Sounds like a solution, but a dirty one, IMO.
> 
> I think that sending back an unavailable a MUST is a good idea, as then
> you have a definite answer whether the user is online or not, whereas
> without, it could just be a laggy connection etc.

I suggested making it a MUST to return unavailable.

Peter

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