fritzy/SleekXMPP — Issue #126: Freeze at connection to some hosts.
Author: bguina
Created: 2011-12-20 13:34:46+00:00
State: open

ClientXMPP does not return when trying to connect using some DNS.
>>> from sleekxmpp import ClientXMPP
>>>
>>> c = ClientXMPP('jabber.org', '')
>>> c.connect(reattempt=False)
True
>>>
>>> c = ClientXMPP('www.google.com', '')
>>> c.connect(reattempt=False)

>>>
>>> c = ClientXMPP('google.com', '')
>>> c.connect(reattempt=False)
True
>>>
>>> c = ClientXMPP('google.org', '')

>>>
>>> c = ClientXMPP('goodsfgsdfggle.org', '')
>>> c.connect(reattempt=False)
False

It is not obvious to me why and which DNS would return or not.
This happens no matter the version of python I'm using (2.6.6 and 2.7.0 at least) and whether or not I installed dnspython.