pyxmpp2 icon indicating copy to clipboard operation
pyxmpp2 copied to clipboard

No presence

Open bdiehl opened this issue 13 years ago • 2 comments

Hi, I'm attempting to get the echobot example working. The issue is that I never see the connecting user's presence, so it seems the connection never fully completes. When connecting to my jabber server, I can negotiate the TLS handshake (self signed cert, so tls_verify_peer is false, starttls is true), and while debugging, I can see pyxmpp2 makes it all the way to:

DEBUG:pyxmpp2.roster:Checking roster-related features DEBUG:pyxmpp2.mainloop.events: dispatching... DEBUG:pyxmpp2.mainloop.events: queue empty

the stays in this loop:

DEBUG:pyxmpp2.mainloop.base:About to call a timeout handler: <bound method Client.regular_tasks of pyxmpp2.client.Client object at 0x2af04f73d850> DEBUG:pyxmpp2.expdict:expdict.expire. timeouts: {} DEBUG:pyxmpp2.mainloop.base: handler result: 1 DEBUG:pyxmpp2.mainloop.base: auto-recurring, restarting in 1 s DEBUG:pyxmpp2.mainloop.events: dispatching... DEBUG:pyxmpp2.mainloop.events: queue empty

and just keeps looping, with no other information. Any Ideas? what other information do you need?

I can connect to this jabber server via Pidgin and xmpppy without issues.

Thanks!

bdiehl avatar Jul 14 '11 15:07 bdiehl

I have tried this with the latest commit as well, with the same results.

bdiehl avatar Jul 14 '11 15:07 bdiehl

I don't quite understand. What presence information do you expect, where? Can you show me the full log? Anonymized if you wish, removing passwords is a good idea too ;)

Comparing your excerpts with my log suggest, that the resource-binding stage is missing, though I cannot say much not seeing the logs.

I have tested the code with a few different servers and have never seen such behaviour.

Jajcus avatar Jul 14 '11 19:07 Jajcus