Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
choquito #1
Member since Mar 2013 · 21 posts · Location: Spain
Group memberships: Members
Show profile · Link to this post
Alex,

I put a timer for send a ping packet every 20 seconds (timeout in tigase = 60 seconds) and now the connection don't closed but OnPresence events  (in red) for roster users not triggered yet.

The test user have 2 contacts in roster (useraaaa and userbbbb)

OnLogin
OnBind
OnIq
OnIq
OnRosterItem useraaaa
OnRosterItem userbbbb
OnRosterEnd
OnIq
OnPresence    user@xxxx.com/aaaa
OnPresence    useraaaa@xxxx.com/test ---->missing
OnPresence    userbbbb@xxxx.com/test ---->missing

OnIq --->>ping
OnIq --->>ping
OnIq --->>ping
...
This post was edited on 2013-03-13, 20:09 by choquito.
Avatar
Alex #2
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
OnPresence fires only when your contacts are Online and your are subscribed correct.
In your last log you did not have mutual subscription (subscription=both) for any of your contacts.

See:
  1. <iq type="result" xmlns="jabber:client" id="MX_3" to="10000004@im.xxxxxx.com/MatriX">
  2.  <query xmlns="jabber:iq:roster">
  3.     <item jid="almacen@im.xxxxxx.com" subscription="none" ask="subscribe" name="" />
  4.     <item jid="santipg@im.xxxxxx.com" subscription="from" name="santipg" />
  5.     <item jid="uno@im.xxxxxx.com" subscription="from" name="uno" />
  6.  </query>
  7. </iq>
Avatar
choquito #3
Member since Mar 2013 · 21 posts · Location: Spain
Group memberships: Members
Show profile · Link to this post
Alex, you are right...with other users (subscription=both) and ping packet every 20 sec works fine...

Without ping, OnPresence does not fire and the connection closed.

Thanks.
Avatar
Alex #4
Member since Feb 2003 · 4322 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by choquito:
Alex, you are right...with other users (subscription=both) and ping packet every 20 sec works fine...

Without ping, OnPresence does not fire and the connection closed.

That's a problem in your server which only the Tigase developers can fix.
Or you switch to sockets instead of BOSH.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS