ejabberd - Comments for "Http-bind logout problem" https://www.ejabberd.im/node/4103 en Notice that https://www.ejabberd.im/node/4103#comment-56040 <p>Notice that <noindex><a href="http://xmpp.org/extensions/xep-0124.html#terminate" title="http://xmpp.org/extensions/xep-0124.html#terminate" rel="nofollow" >http://xmpp.org/extensions/xep-0124.html#terminate</a></noindex> says:</p> <blockquote><p> the client MAY gracefully terminate the session by sending a element with a 'type' attribute set to "terminate". </p></blockquote> <p>You didn't include the type="terminate".</p> <p>I logged in with an HTTPBind client to ejabberd 2.1.4. When I select in the client "Disconnect from the server", that client sends to ejabberd:</p> <div class="codeblock"><code>&lt;body rid=&#039;857095&#039;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sid=&#039;a4e7afe609f76c80aa8ce2c214690dfe5f91d93f&#039;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns=&#039;http://jabber.org/protocol/httpbind&#039;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; key=&#039;64985e03b0fe7333653084c084c6cefb4c27069d&#039;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type=&#039;terminate&#039; /&gt;</code></div> <p>Then ejabberd sends two stanzas to the client:</p> <div class="codeblock"><code>&lt;body xmlns=&#039;http://jabber.org/protocol/httpbind&#039; /&gt;<br />&lt;body type=&#039;terminate&#039;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlns=&#039;http://jabber.org/protocol/httpbind&#039; /&gt;</code></div> <p>And finally ejabberd.log shows:</p> <div class="codeblock"><code>=INFO REPORT==== 12-Jun-2010::13:48:12 ===<br />I(&lt;0.420.0&gt;:ejabberd_c2s:1409) : ({socket_state,ejabberd_http_bind,{http_bind,&lt;0.419.0&gt;,{{127,0,0,1},41926}},ejabberd_http_bind}) Close session for badlop@localhost/OneTeam</code></div> Sat, 12 Jun 2010 13:29:26 +0000 mfoss comment 56040 at https://www.ejabberd.im