[Standards] LAST CALL: XEP-0012 (Last Activity)

Philipp Hancke fippo at goodadvice.pages.de
Mon Jan 22 14:12:14 UTC 2007


Peter Saint-Andre wrote:
> Philipp Hancke wrote:
>> [...]
>>> URL: http://www.xmpp.org/extensions/xep-0012.html
>>>
>>> This Last Call begins today and shall end at the close of business on 
>>> 2007-01-30.
>>
>>
>> The xep uses 'seconds' as a relative measure. This may be a problem
>> if the network lag is large, as it distorts the result.
> 
> Is that really a big worry with IQs?
> 
> /psa


Only in this particular case (and it's not big).

For example (#1):
At 07:21:00, host replies with:
<iq id='l4' type='result' from='user at host'>
	<query xmlns='jabber:iq:last' seconds='903'>
	Heading home
	</query>
</iq>
(user at host has quit at 07:05:57)

This stanza arrives at the senders client at 07:22:00.
The client determines that user at host has quit 903 seconds ago,
at 07:06:57.

If the server had stamped the stanza like this:
<iq id='l4' type='result' from='user at host'>
	<query xmlns='jabber:iq:last' seconds='903'
		last='2007-01-22T07:05:57Z'>
		Heading home
	</query>
</iq>
there is no such problem.



More information about the Standards mailing list