Not logged in. · Lost password · Register
Forum: MatriX RSS
Connection problems.
mtranda #1
Member since Oct 2011 · 7 posts
Group memberships: Members
Show profile · Link to this post
Subject: Matrix with WLM
So the problem is my connection gets closed as soon as I do a client.Open(); No other events get called, including onBeforeSasl or onLogin. Currently I retrieve the token through their web login but the token doesn't get requested (as it does not reach onBeforeSasl). I have successfully integrated facebook login quite a long time ago, along with other services that requre classic XMPP login so this problem is beyond my understanding.

As requested, here's the XML:

<stream:stream xmlns:stream="" from="" version="1.0" id="104477" xmlns="jabber:client" >
<stream:features xmlns:stream="">
  <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls">
    <required />
<proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
<stream:stream xmlns:stream="" from="" version="1.0" id="104478" xmlns="jabber:client" >
<stream:error xmlns:stream="">
  <see-other-host xmlns="urn:ietf:params:xml:ns:xmpp-streams"></see-other-host>
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
With the April server update Microsoft introduced this new behavior.

  1. <stream:error xmlns:stream="">
  2.  <see-other-host xmlns="urn:ietf:params:xml:ns:xmpp-streams"></see-other-host>
  3. </stream:error>

its sending this error message to redirect you to another server. This seems to be thier way of load balancing 8-(.
if you get this error you have to read the new host and set a global flag for redirect.
Then disable SRV resolving ad set this host as hostname and reconnect after the OnClose to this host. After the second connect everything works like before the server update.

I have attached an example. You need the latest binary to run this example from here:

The author has attached one file to this post: 9.8 kBytes
You have no permission to open this file.
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