ejabberd - Comments for "Binding/Polling problems" https://www.ejabberd.im/node/2953 en How to reproduce https://www.ejabberd.im/node/2953#comment-52206 <div class="quote-msg"> <div class="quote-author"><em>flipkick</em> wrote:</div> <p>I've found another javascript library supporting BOSH. It successfully connects to tigase (another jabber server supporting BOSH) but unfortunately not to ejabberd.</p></div> <p>If you consider this a bug in ejabberd, you may want to provide information so it can be properly reported as a bug in the bug tracker:</p> <ul> <li>Version of ejabberd and erlang </li><li>What BOSH client, version, how it was installed </li><li>How to exactly reproduce the problem. </li></ul> <p>The purpose is to reproduce the problem in the laboratory, so it can be carefully inspected.</p> Sun, 20 Apr 2008 17:28:50 +0000 mfoss comment 52206 at https://www.ejabberd.im bosh https://www.ejabberd.im/node/2953#comment-52135 <p>I've found another javascript library supporting BOSH. It successfully connects to tigase (another jabber server supporting BOSH) but unfortunately not to ejabberd.</p> <p>connection to ejabberd using BOSH:</p> <div class="codeblock"><code>[2] Succesfully connected to localhost<br />[2] creating session with id GjP4lGrxCd56SNMaOcOoRcOK<br />[2] inQueue: &lt;?xml version=&#039;1.0&#039;?&gt;&lt;stream:stream xmlns=&#039;jabber:client&#039; xmlns:str<br />eam=&#039;http://etherx.jabber.org/streams&#039; id=&#039;2046858242&#039; from=&#039;localhost&#039; version=<br />&#039;1.0&#039; xml:lang=&#039;en&#039;&gt;&lt;stream:features&gt;&lt;mechanisms xmlns=&#039;urn:ietf:params:xml:ns:x<br />mpp-sasl&#039;&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;/mechani<br />sms&gt;&lt;register xmlns=&#039;http://jabber.org/features/iq-register&#039;/&gt;&lt;/stream:features&gt; <p>[2] inQueue: &lt;stream:features&gt;&lt;mechanisms xmlns=&#039;urn:ietf:params:xml:ns:xmpp-sas<br />l&#039;&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;re<br />gister xmlns=&#039;http://jabber.org/features/iq-register&#039;/&gt;&lt;/stream:features&gt;<br />[2] sending response [7357]: &lt;body xmlns=&quot;http://jabber.org/protocol/httpbind&quot; x<br />mlns:stream=&quot;http://etherx.jabber.org/streams&quot; authid=&quot;2046858242&quot; inactivity=&quot;6<br />0&quot; polling=&quot;2&quot; requests=&quot;2&quot; sid=&quot;GjP4lGrxCd56SNMaOcOoRcOK&quot; wait=&quot;60&quot;&gt;&lt;stream:fea<br />tures&gt;&lt;mechanisms xmlns=&quot;urn:ietf:params:xml:ns:xmpp-sasl&quot;&gt;&lt;mechanism&gt;DIGEST-MD5<br />&lt;/mechanism&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;register xmlns=&quot;http://jab<br />ber.org/features/iq-register&quot;/&gt;&lt;/stream:features&gt;&lt;/body&gt;<br />[2] inQueue: &lt;iq from=&#039;localhost&#039; id=&#039;id0.7795918087111591&#039; type=&#039;error&#039;&gt;&lt;error<br />code=&#039;503&#039; type=&#039;cancel&#039;&gt;&lt;service-unavailable xmlns=&#039;urn:ietf:params:xml:ns:xmpp<br />-stanzas&#039;/&gt;&lt;/error&gt;&lt;/iq&gt;<br />[2] sending response [7358]: &lt;body xmlns=&quot;http://jabber.org/protocol/httpbind&quot;&gt;&lt;<br />iq xmlns=&quot;jabber:client&quot; from=&quot;localhost&quot; id=&quot;id0.7795918087111591&quot; type=&quot;error&quot;<br />&gt;&lt;error code=&quot;503&quot; type=&quot;cancel&quot;&gt;&lt;service-unavailable xmlns=&quot;urn:ietf:params:xml<br />:ns:xmpp-stanzas&quot;/&gt;&lt;/error&gt;&lt;/iq&gt;&lt;/body&gt;</p></code></div> <p>connection to tigase using BOSH:</p> <div class="codeblock"><code>[2] Succesfully connected to localhost<br />[2] creating session with id 010pmgY_kSulRJq0EyxMtKdY<br />[2] inQueue: &lt;stream:stream version=&#039;1.0&#039; xml:lang=&#039;en&#039; from=&#039;localhost&#039; id=&#039;955<br />fc030-148d-4418-a8ae-054076dced24&#039; xmlns=&#039;jabber:client&#039; xmlns:stream=&#039;http://et<br />herx.jabber.org/streams&#039;&gt;<br />[2] failed to get stream features<br />[2] inQueue: &lt;stream:stream version=&#039;1.0&#039; xml:lang=&#039;en&#039; from=&#039;localhost&#039; id=&#039;955<br />fc030-148d-4418-a8ae-054076dced24&#039; xmlns=&#039;jabber:client&#039; xmlns:stream=&#039;http://et<br />herx.jabber.org/streams&#039;&gt;&lt;stream:features&gt;&lt;auth xmlns=&quot;http://jabber.org/feature<br />s/iq-auth&quot;/&gt;&lt;register xmlns=&quot;http://jabber.org/features/iq-register&quot;/&gt;&lt;starttls<br />xmlns=&quot;urn:ietf:params:xml:ns:xmpp-tls&quot;/&gt;&lt;mechanisms xmlns=&quot;urn:ietf:params:xml:<br />ns:xmpp-sasl&quot;&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;mech<br />anism&gt;CRAM-MD5&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;session xmlns=&quot;urn:ietf:params:xml:ns:xm<br />pp-session&quot;/&gt;&lt;/stream:features&gt;<br />[2] inQueue: &lt;stream:features&gt;&lt;auth xmlns=&quot;http://jabber.org/features/iq-auth&quot;/&gt;<br />&lt;register xmlns=&quot;http://jabber.org/features/iq-register&quot;/&gt;&lt;starttls xmlns=&quot;urn:i<br />etf:params:xml:ns:xmpp-tls&quot;/&gt;&lt;mechanisms xmlns=&quot;urn:ietf:params:xml:ns:xmpp-sasl<br />&quot;&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;mechanism&gt;CRAM-M<br />D5&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;session xmlns=&quot;urn:ietf:params:xml:ns:xmpp-session&quot;/<br />&gt;&lt;/stream:features&gt;<br />[2] starttls present, trying to use it<br />[2] &lt;proceed xmlns=&quot;urn:ietf:params:xml:ns:xmpp-tls&quot;/&gt;<br />[0] initiating handshake<br />[2] tls failed but we don&#039;t need to be secure<br />[1] socket closed<br />[2] inQueue: &lt;stream:stream version=&#039;1.0&#039; xml:lang=&#039;en&#039; from=&#039;localhost&#039; id=&#039;5a3<br />c0079-6d83-495d-8baa-32351cd1d3c1&#039; xmlns=&#039;jabber:client&#039; xmlns:stream=&#039;http://et<br />herx.jabber.org/streams&#039;&gt;<br />[2] failed to get stream features<br />[2] inQueue: &lt;stream:stream version=&#039;1.0&#039; xml:lang=&#039;en&#039; from=&#039;localhost&#039; id=&#039;5a3<br />c0079-6d83-495d-8baa-32351cd1d3c1&#039; xmlns=&#039;jabber:client&#039; xmlns:stream=&#039;http://et<br />herx.jabber.org/streams&#039;&gt;&lt;stream:features&gt;&lt;auth xmlns=&quot;http://jabber.org/feature<br />s/iq-auth&quot;/&gt;&lt;register xmlns=&quot;http://jabber.org/features/iq-register&quot;/&gt;&lt;starttls<br />xmlns=&quot;urn:ietf:params:xml:ns:xmpp-tls&quot;/&gt;&lt;mechanisms xmlns=&quot;urn:ietf:params:xml:<br />ns:xmpp-sasl&quot;&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;mech<br />anism&gt;CRAM-MD5&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;session xmlns=&quot;urn:ietf:params:xml:ns:xm<br />pp-session&quot;/&gt;&lt;/stream:features&gt;<br />[2] inQueue: &lt;stream:features&gt;&lt;auth xmlns=&quot;http://jabber.org/features/iq-auth&quot;/&gt;<br />&lt;register xmlns=&quot;http://jabber.org/features/iq-register&quot;/&gt;&lt;starttls xmlns=&quot;urn:i<br />etf:params:xml:ns:xmpp-tls&quot;/&gt;&lt;mechanisms xmlns=&quot;urn:ietf:params:xml:ns:xmpp-sasl<br />&quot;&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;mechanism&gt;CRAM-M<br />D5&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;session xmlns=&quot;urn:ietf:params:xml:ns:xmpp-session&quot;/<br />&gt;&lt;/stream:features&gt;<br />[2] sending response [1427]: &lt;body xmlns=&quot;http://jabber.org/protocol/httpbind&quot; x<br />mlns:stream=&quot;http://etherx.jabber.org/streams&quot; authid=&quot;5a3c0079-6d83-495d-8baa-3<br />2351cd1d3c1&quot; inactivity=&quot;60&quot; polling=&quot;2&quot; requests=&quot;2&quot; sid=&quot;010pmgY_kSulRJq0EyxMt<br />KdY&quot; wait=&quot;60&quot;&gt;&lt;stream:features&gt;&lt;auth xmlns=&quot;http://jabber.org/features/iq-auth&quot;<br />/&gt;&lt;register xmlns=&quot;http://jabber.org/features/iq-register&quot;/&gt;&lt;mechanisms xmlns=&quot;u<br />rn:ietf:params:xml:ns:xmpp-sasl&quot;&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;mechanism&gt;DIGEST-M<br />D5&lt;/mechanism&gt;&lt;mechanism&gt;CRAM-MD5&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;session xmlns=&quot;urn:ie<br />tf:params:xml:ns:xmpp-session&quot;/&gt;&lt;/stream:features&gt;&lt;/body&gt;<br />[2] inQueue: &lt;iq id=&quot;id0.3616666284653558&quot; from=&quot;localhost&quot; type=&quot;result&quot;&gt;Authen<br />tication successful.&lt;/iq&gt;<br />[2] sending response [1428]: &lt;body xmlns=&quot;http://jabber.org/protocol/httpbind&quot;&gt;&lt;<br />iq xmlns=&quot;jabber:client&quot; from=&quot;localhost&quot; id=&quot;id0.3616666284653558&quot; type=&quot;result<br />&quot;&gt;Authentication successful.&lt;/iq&gt;&lt;/body&gt;</code></div> Mon, 07 Apr 2008 21:23:14 +0000 flipkick comment 52135 at https://www.ejabberd.im binding problems https://www.ejabberd.im/node/2953#comment-52133 <p>I may have jumped the gun there. I've simply forgotten the cache ;) HTTP-Polling with JSJaC has no session key problems, only HTTP-Binding. I have no idea whether it's a ejabberd or a JSJaC problem because there's no other client for me to test it.</p> Mon, 07 Apr 2008 19:19:29 +0000 flipkick comment 52133 at https://www.ejabberd.im JSJaC bug https://www.ejabberd.im/node/2953#comment-52124 <p>Testing done. JWChat has the same problems :(. So it seems to be a JSJaC bug. I'll report it to the developer.</p> Sun, 06 Apr 2008 13:52:42 +0000 flipkick comment 52124 at https://www.ejabberd.im HTTP-Polling with ejabberd works fine https://www.ejabberd.im/node/2953#comment-52123 <p>I've just tested Psi with 8 HTTP-Polling conference room participants over the same polling interface and a lot of text ;) Everything works fine. So this key or connection problem seems to be a bug in MUCKl or JSJac. In the next step I'll test the current JWChat using the current JSJac. Maybe it's just a problem of MUCKl. I hope so :)</p> <p>cheers,<br /> flip</p> Sun, 06 Apr 2008 13:07:42 +0000 flipkick comment 52123 at https://www.ejabberd.im Sorry, I also meant clients https://www.ejabberd.im/node/2953#comment-52121 <p>Sorry, I also meant clients supporting HTTP-polling. The problems occur with HTTP-binding and HTTP-polling, so at this moment I don't care which method I'll test. I've found Exodus (crashes with use of proxy and HTTP-poll) and Psi. Psi runs fine with HTTP-polling, so I'll use it for my tests. Tomorrow I'll report whether the "key problems" also occur with Psi's HTTP-polling or not.</p> Sat, 05 Apr 2008 22:55:12 +0000 flipkick comment 52121 at https://www.ejabberd.im No idea. Maybe ask in jdev chatroom / mailing list https://www.ejabberd.im/node/2953#comment-52120 <div class="quote-msg"> <div class="quote-author"><em>flipkick</em> wrote:</div> <p>i'd like to test another client with http binding. not a jsjac-based client.<br /> i remember a windows or java client supporting binding-connections.<br /> does anyone know which client this is?</p></div> <p>HTTP-Bind is rarely implemented, I only know of JWChat and MUCkl. If another client implements it, I guess it must be a well established client. </p> <p>Regarding Java, it could be Jeti or Spark, but none of them is advertized as supporting HTTP-Bind. Specific Windows clients, I think none is still in development. Cross-platform clients that run on Windows don't implement it (Psi, Gajim, Tkabber, Coccinella).</p> <p>You can ask in the jdev chatroom (<noindex><a href="mailto:jdev@conference.jabber.org" rel="nofollow" >jdev@conference.jabber.org</a></noindex>) or in the JDEV mailing list in <noindex><a href="http://www.jabber.org" title="www.jabber.org" rel="nofollow" >www.jabber.org</a></noindex></p> Sat, 05 Apr 2008 22:02:09 +0000 mfoss comment 52120 at https://www.ejabberd.im a client supporting http binding? https://www.ejabberd.im/node/2953#comment-52116 <p>i'd like to test another client with http binding. not a jsjac-based client.<br /> i remember a windows or java client supporting binding-connections.<br /> does anyone know which client this is?</p> Sat, 05 Apr 2008 19:44:24 +0000 flipkick comment 52116 at https://www.ejabberd.im btw, it would be useful, if https://www.ejabberd.im/node/2953#comment-52104 <p>btw, it would be useful, if the "wrong key" or "deleting session" message is also displayed in the standard log.</p> Sat, 05 Apr 2008 10:49:28 +0000 flipkick comment 52104 at https://www.ejabberd.im