3 messages in com.googlegroups.google-talk-openRe: Inconsistence with RFC-3921 ???| Subject: | Re: Inconsistence with RFC-3921 ???![]() |
|---|---|
| From: | pinker (Xiao...@gmail.com) |
| Date: | 05/18/2007 01:03:44 PM |
| List: | com.googlegroups.google-talk-open |
Yes, I found this inconsistence too. I have wrote a chat bot using gtalk service, The bot's buddies are over 2000, So the presence of these buddies blocks the net io, Somebody can help me unsubscribe them, or let gtalk server don't send me these presence messages? Thanks in advance!
On Mar 31, 1:13 am, "stpeter" <stpe...@gmail.com> wrote:
On Mar 29, 9:56 am, "Dmitry" <pshe...@gmail.com> wrote:
RFC-3921 says in 8.4.2: "5. The contact's server then (1) MUST send a presence stanza of type "unsubscribed" to the user; and (2) SHOULD send unavailable presence from all of the contact's available resources to the user".
That is the contact's server. In this scenario you are the user. So you would receive the roster push instead. (In this case you're both using the same server, i.e. gmail.com, but the same principles apply.)
Instead of that after <presence to='...@gmail.com' type='unsubscribe'/>
I get just two subsequent roster's notifications:
<iq to='...@gmail.com/10B53A7A' id='9BEA5191' type='set'> <query gr:ext='2' xmlns='jabber:iq:roster' xmlns:gr='google:roster'> <item jid='...@gmail.com' subscription='from'/> </query> </iq>
<<< <iq to='...@gmail.com/10B53A7A' id='9BEA519A' type='set'> <query gr:ext='2' xmlns='jabber:iq:roster' xmlns:gr='google:roster'> <item jid='...@gmail.com' subscription='from' ask='subscribe'/> </query> </iq>
As far as I understand the second <iq/> means that Google Talk force the subscription back without any visible reasons.
Yes, that's odd.
Does anyone could explain me such behavior?
I can't. But it is inconsistent with RFC 3921.
--stpeter




