ejabberd - Comments for "http-bind problem" https://www.ejabberd.im/node/4175 en tiredofnick wrote: Just https://www.ejabberd.im/node/4175#comment-56459 <div class="quote-msg"> <div class="quote-author"><em>tiredofnick</em> wrote:</div> <p>Just upgraded my server to 2.1.4 from 2.0.5 and previously was able to use jwchat against ejabberd, now I am unable to connect. </p> <p>Seems ejabberd is handling http-bind requests differently? </p></div> <p>Surely, there were many changes in ejabberd's http-bind code between 2.0.5 and 2.1.4.</p> <p>I have ejabberd 2.1.4, Erlang R13B04, serving HTTP using the internal mod_http_fileserver instead of Apache, and JWChat 1.0. It works for me.</p> <p>I don't have those two reports:</p> <div class="codeblock"><code>=INFO REPORT==== 2010-07-27 16:05:23 ===<br />I(&lt;0.412.0&gt;:ejabberd_net:25) : gethostname {socket_state,ejabberd_http_bind,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {http_bind,&lt;0.411.0&gt;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {{127,0,0,1},42407}},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ejabberd_http_bind} <p>=INFO REPORT==== 2010-07-27 16:05:28 ===<br />D(&lt;0.411.0&gt;:ejabberd_http_bind:531) : terminate: Deleting session 3f955a14865cf73a74adc5a8e2d7c74350dd6d35</p></code></div> <p>Just for curiosity, disable tls in the 5280 listener and try using HTTP instead of HTTPS.</p> <p>Let's try to know more details about that termination. Apply this patch to ejabberd source code, compile and install the modified file. You can put loglevel to 4.</p> <pre> --- src/web/ejabberd_http_bind.erl +++ src/web/ejabberd_http_bind.erl @@ -527,8 +527,12 @@ handle_info(_, StateName, StateData) -&gt; %% Purpose: Shutdown the fsm %% Returns: any %%---------------------------------------------------------------------- -terminate(_Reason, _StateName, StateData) -&gt; - ?DEBUG("terminate: Deleting session ~s", [StateData#state.id]), +terminate(Reason, StateName, StateData) -&gt; + catch throw(error123), + Trace = erlang:get_stacktrace(), + ?INFO_MSG("terminate: Deleting session ~s for reason ~p, in" + " StateName ~p, with StateData: ~n~p~nand stacktrace: ~n~p", + [StateData#state.id, Reason, StateName, StateData, Trace]), mnesia:dirty_delete({http_bind, StateData#state.id}), send_receiver_reply(StateData#state.http_receiver, {ok, terminate}), case StateData#state.waiting_input of </pre> Wed, 28 Jul 2010 18:44:09 +0000 mfoss comment 56459 at https://www.ejabberd.im