hang when connecting to jabberd2 server
Reported by stan | July 1st, 2009 @ 11:49 PM
Using test-lm from git://github.com/m5h/loudmouth.git connection hangs/fails. No SSL or proxy being used. Connects ok with pidgin and psi.
$ LM_DEBUG=all ./test-lm -s jabber.largeone.net -u user@jabber.largeone.net -p password
*** Socket library initialising...
*** Connecting to: jabber.largeone.net:5222
*** Calling resolver callback: jabber.largeone.net
*** LmOldSocket::host_cb (result=0)
Trying 80.68.89.230 port 5222...
Connection success (2).
SEND:
-----------------------------------
<?xml version='1.0' encoding='UTF-8'?>
-----------------------------------
*** Sending stream header
SEND:
-----------------------------------
<stream:stream version="1.0" xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" to="jabber.largeone.net">
-----------------------------------
RECV [193]:
-----------------------------------
'<?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='jabber.largeone.net' version='1.0' id='gxq4ye10pizplxfeckvvxom1l7bgtkwahmff1hgq'>'
-----------------------------------
*** Read: 193 chars
LM-PARSER: ATTRIBUTE: xmlns:stream = http://etherx.jabber.org/streams
LM-PARSER: ATTRIBUTE: xmlns = jabber:client
LM-PARSER: ATTRIBUTE: from = jabber.largeone.net
LM-PARSER: ATTRIBUTE: version = 1.0
LM-PARSER: ATTRIBUTE: id = gxq4ye10pizplxfeckvvxom1l7bgtkwahmff1hgq
LM-PARSER: Trying to close node: stream:stream
LM-PARSER: Have a new message
*** New message with type="stream:stream" from: jabber.largeone.net
*** XMPP 1.0 stream received: gxq4ye10pizplxfeckvvxom1l7bgtkwahmff1hgq
TestLM: Sent authentication message
RECV [66]:
-----------------------------------
'<stream:features xmlns:stream='http://etherx.jabber.org/streams'/>'
-----------------------------------
*** Read: 66 chars
LM-PARSER: ATTRIBUTE: xmlns:stream = http://etherx.jabber.org/streams
LM-PARSER: Trying to close node: stream:features
LM-PARSER: Have a new message
*** New message with type="stream:error" from: unknown
LM-SASL: Stream features received
Comments and changes to this ticket
-

stan July 3rd, 2009 @ 11:35 PM
Now connects with change in first patch. Code looks for an auth element below the returned streams:feature element which afaics from rfc3920 does not go here.
Second patch corrects 'type="stream:error"' from final "*** New message with type" message in output above.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Libloudmouth is a lightweight and easy-to-use C library for programming with the Jabber protocol. It's designed to be easy to get started with and yet extensible to let you do anything the Jabber protocol allows.
