More informations… I can’t really say if it’s an Apache issue or what because I receive randomly 404 errors regarding my BOSH URL… Quite strange to receive randomly 200, 404 or 502 HTTP error codes when using URLLoader…
And what is very interesting is that I have strange eJabberd logs when I get these error codes… So I think there is an undetermined issue with XIFF and/or eJabberd with AIR. Maybe AIR, as it is executed locally and not in a browser, cannot properly manage HTTP sessions, BOSH or whatever ?
Here are some logs when I get the 502 error :
=INFO REPORT==== 2010-01-27 15:16:07 ===
D(<0.4397.0>:ejabberd_http_bind:342) : state.rid/cur rid: 521818/521817
=INFO REPORT==== 2010-01-27 15:16:07 ===
D(<0.4397.0>:ejabberd_http_bind:409) : REPEATING 521817
=INFO REPORT==== 2010-01-27 15:16:07 ===
D(<0.4397.0>:ejabberd_http_bind:663) : terminate: deleting session 7b5474e63fd03ecd357c71e6f4c7932220e70643
=ERROR REPORT==== 2010-01-27 15:16:07 ===
** State machine <0.4397.0> terminating
** Last message in was {‘$gen_sync_all_state_event’,
{<0.4405.0>,#Ref<0.0.0.85672>},
{http_put,521817,
[{“sid”,
“7b5474e63fd03ecd357c71e6f4c7932220e70643”},
{“rid”,“521817”},
{“xmlns”,
"[http://jabber.org/protocol/httpbind](http://jabber.org/protocol/httpbind)"}],
[[60,
“iq”,
[[32,“type”,61,39,“get”,39],
(…)
** When State == loop
** Data == {state,“7b5474e63fd03ecd357c71e6f4c7932220e70643”,
521818,
,
,
,
{<0.4398.0>,ok},
<0.4398.0>,
0,
undefined,
undefined,
1264601767132291,
#Ref<0.0.0.85667>,
0,
[{hbr,521818,
,
,
[[,
60,
“presence”,
[[32,
“from”,
(…)
** Reason for termination =
** {{badmatch,},
[{ejabberd_http_bind,handle_sync_event,4},
{gen_fsm,handle_msg,7},
{proc_lib,init_p,5}]}
=INFO REPORT==== 2010-01-27 15:16:07 ===
I(<0.4399.0>:ejabberd_c2s:1299) : ({socket_state,ejabberd_http_bind,{http_bind,<0.4397.0>},<0.4398.0>}) Close session for XXX
And some logs when I get the error 404 :
=INFO REPORT==== 2010-01-27 15:14:48 ===
D(<0.4392.0>:ejabberd_http_bind:691) : no session associated with sid:
“d94a61c049b71b3d3a824bcd4a7bf22e8d3745a6”
Still don’t know what’s happening…