[ejabberd] BOSH implementation

Yann Leboulanger asterix at lagaule.org
Tue Jul 14 17:33:14 MSD 2009


Yann Leboulanger wrote:
> Hi,
> 
> I'm testing BOSH implementation of ejabberd 2.0.5, but I'm not able to
> make it work.
> 
> Here is what I send:
> 
> $ telnet localhost 5280
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> POST http://localhost:5280/http-bind HTTP/1.1
> Host: localhost:5280
> User-Agent: Gajim
> Content-Type: text/xml; charset=utf-8
> Content-Length: 294
> Connection: Keep-Alive
> 
> <body xmlns="http://jabber.org/protocol/httpbind"
> newkey="c10c8adb4f1fc06cbd179a5ac65ba9ce68e6cc89" hold="1" ver="1.6"
> ack="1" route="localhost:5222" wait="30" content="text/xml;
> charset=utf-8" to="localhost" xml:lang="en" rid="395276236616729"
> xmpp:version="1.0" xmlns:xmpp="urn:xmpp:xbosh" />
> 
> but server never replies (a 404 error after some minutes)
> 
> Is there something wrong in what I send? Same thing work on a prosody
> server for example.
> 
> Thanks for your help

I talked about that with badlop and he found the problem. In fact it
works with previous version of ejabberd (2.0.1 for example), and after
the patch from thicket 611 [0] has been applied, it doesn't work
anymore. Reverting this patch makes bosh work, over http only, not https.


[0] https://support.process-one.net/browse/EJAB-611

-- 
Yann


More information about the ejabberd mailing list