[JDEV] Probing for pressence bug ?

David Waite dwaite at jabber.com
Mon Feb 12 08:27:20 CST 2001


Hi,
>From http://docs.jabber.org/jpg/html/main.html#REFPRESENCE you can see that
presence type='probe' is supposed to be only used between servers. For
client-side presence, you are supposed to keep track of the previous presence
of a user, and rely on the server to 'push' you presence updates.

-David Waite

Marc Meermans wrote:

> Hi everybody,
>
> I'm developing some client software for use with the Jabber server. Toying
> around a bit with the jabber protocol I discovered a problem.
> Probing for a users pressence failes while. Below you find an excerpt of the
> debug log that is dumped to the screen. Both users have subscribed to
> eachothers presence information.
>
> Is this a bug ?
>
> Regards,
>
> ----------------------------------------------------------------------------
> ----------------------------------------------------------
>
> Mon Feb 12 11:02:04 2001  mio.c:688 MIO read from socket 8: <presence
> type='probe' to='user2 at localhost'><status>PROBING FOR
> PRESENCE</status></presence>
> Mon Feb 12 11:02:04 2001  client.c:227 pthsock_client_read called with:
> m:80E8888 flag:3 arg:80E8978
> Mon Feb 12 11:02:04 2001  deliver.c:460 DELIVER 4:localhost <route
> to='user1 at localhost/81A0758' from='8 at c2s/80E8888'><presence type='probe'
> to='user2 at localhost'><status>PROBING FOR
> PRESENCE</status></presence></route>
> Mon Feb 12 11:02:04 2001  deliver.c:649 delivering to instance 'sessions'
> Mon Feb 12 11:02:04 2001  deliver.c:83 (80D4700)incoming packet <route
> to='user1 at localhost/81A0758' from='8 at c2s/80E8888'><presence type='probe'
> to='user2 at localhost'><status>PROBING FOR
> PRESENCE</status></presence></route>
> Mon Feb 12 11:02:04 2001  users.c:137 js_user(user1 at localhost,80EB640)
> Mon Feb 12 11:02:04 2001  mtq 80FCFF8 entering from pth
> Mon Feb 12 11:02:04 2001  mtq 80FCFF8 queue call 80EA620
> Mon Feb 12 11:02:04 2001  sessions.c:234 THREAD:SESSION:FROM received a
> packet!
> Mon Feb 12 11:02:04 2001  modules.c:124 mapi_call 1
> Mon Feb 12 11:02:04 2001  modules.c:147 MAPI 81A0A68
> Mon Feb 12 11:02:04 2001  modules.c:147 MAPI 81A0A90
> Mon Feb 12 11:02:04 2001  mod_presence avail tracker
> Mon Feb 12 11:02:04 2001  modules.c:147 MAPI 81A0AA0
> Mon Feb 12 11:02:04 2001  modules.c:163 mapi_call returning unhandled
> Mon Feb 12 11:02:04 2001  deliver.c:239
> deliver(to[user2 at localhost],from[user1 at localhost/user1],type[2],packet[<pres
> ence type='probe' to='user2 at localhost'
> from='user1 at localhost/user1'><status>PROBING FOR
> PRESENCE</status></presence>])
> Mon Feb 12 11:02:04 2001  users.c:137 js_user(user2 at localhost,80EB640)
> Mon Feb 12 11:02:04 2001  deliver.c:44 delivering locally to user2 at localhost
> Mon Feb 12 11:02:04 2001  modules.c:124 mapi_call 3
> Mon Feb 12 11:02:04 2001  modules.c:147 MAPI 80DA0E0
> Mon Feb 12 11:02:04 2001  mod_presence deliver phase
> Mon Feb 12 11:02:04 2001  mod_presence broadcasting to user2 caching in
> 81A4E70
> Mon Feb 12 11:02:04 2001  mtqoverflow 0 overflowing 81AAD18
> Mon Feb 12 11:02:04 2001  modules.c:163 mapi_call returning unhandled
> Mon Feb 12 11:02:04 2001  deliver.c:259 psending to 4015E924 packet 80EA620
> Mon Feb 12 11:02:04 2001  mtqoverflow 1 overflowing 80EACA0
> Mon Feb 12 11:02:04 2001  mtq 80FCFF8 queue call 81AAD18
> Mon Feb 12 11:02:04 2001  sessions.c:288 THREAD:SESSION:TO received data
> from user1 at localhost/user1!
> Mon Feb 12 11:02:04 2001  modules.c:124 mapi_call 0
> Mon Feb 12 11:02:04 2001  modules.c:147 MAPI 81A1948
> Mon Feb 12 11:02:04 2001  mod_presence incoming filter for
> user2 at localhost/user2
> Mon Feb 12 11:02:04 2001  deliver.c:460 DELIVER 2:localhost <xdb type='get'
> to='user2 at localhost' from='sessions' ns='jabber:iq:roster' id='19'/>
> Mon Feb 12 11:02:04 2001  deliver.c:649 delivering to instance 'xdb'
> Mon Feb 12 11:02:04 2001  xdb_file.c:161 handling xdb request <xdb
> type='get' to='user2 at localhost' from='sessions' ns='jabber:iq:roster'
> id='19'/>
> Mon Feb 12 11:02:04 2001  xdb_file.c:98 loading ./spool/localhost/user2.xml
> Mon Feb 12 11:02:04 2001  deliver.c:460 DELIVER 1:sessions <xdb
> type='result' to='sessions' from='user2 at localhost' ns='jabber:iq:roster'
> id='19'><query xmlns='jabber:iq:roster'><item jid='user1 at localhost'
> subscription='both'/><item jid='user3 at localhost'
> subscription='to'/></query></xdb>
> Mon Feb 12 11:02:04 2001  deliver.c:649 delivering to instance 'sessions'
> Mon Feb 12 11:02:04 2001  xdb.c:41 xdb_results checking xdb packet <xdb
> type='result' to='sessions' from='user2 at localhost' ns='jabber:iq:roster'
> id='19'><query xmlns='jabber:iq:roster'><item jid='user1 at localhost'
> subscription='both'/><item jid='user3 at localhost'
> subscription='to'/></query></xdb>
> Mon Feb 12 11:02:04 2001  mod_presence user1 at localhost/user1 attempted to
> probe and is not on the roster
> Mon Feb 12 11:02:04 2001  mtq 80FCFF8 one call 80EACA0
> Mon Feb 12 11:02:04 2001  offline.c:43 THREAD:OFFLINE received
> user2 at localhost's packet: <presence type='probe' to='user2 at localhost'
> from='user1 at localhost/user1'><status>PROBING FOR
> PRESENCE</status></presence>
> Mon Feb 12 11:02:04 2001  modules.c:124 mapi_call 1
> Mon Feb 12 11:02:04 2001  modules.c:163 mapi_call returning unhandled
> Mon Feb 12 11:02:04 2001  util.c:64 dropping 503 packet <presence
> type='probe' to='user2 at localhost'
> from='user1 at localhost/user1'><status>PROBING FOR
> PRESENCE</status></presence>
> Mon Feb 12 11:02:04 2001  mtq 80FCFF8 leaving to pth
>
> ----------------------------------------------------------------------------
> ----------------------------------------------------------
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev





More information about the JDev mailing list