Project

General

Profile

Tigase, converse web client and prebind, weird tigase responses

Rubem Silva
Added about 4 years ago

Hi there.

I'm having an issue with converse and tigase xmpp server related with too many POST requests and weird responses from tigase.

So my setup is:

Virtual machine (512mb RAM) running tigase 5.2.3, apache and converse
XMPP prebind plugin, https://github.com/priyadi/roundcube-converse.js-xmpp-plugin/tree/master/php/xmpp-prebind-php
Simple index.php launching converse with prebind
myserver.com is pointing to my VM machine.

When i point my browser to myserver.com/index.php?name=NAME&pass=PASS, i was expecting to see converse login me in with prebind, shows all my contacts and wait. Instead, converse logs me in, shows my contacts and starts to make enumerous POST requests to XMPP server, like in a loop, flooding tigase xmpp server with requests. If i login manually in converse without prebind all seems to work just fine.

The strange response from tigase is something like this one:

Request:
<body rid='6961223303' xmlns='http://jabber.org/protocol/httpbind' sid='ec6996e9-fc79-4045-8ca5-cab618ec6507'/>

Response:
<?xml version="1.0" encoding="UTF-8"?>
<body xmlns="http://jabber.org/protocol/httpbind" xmlns:stream="http://etherx.jabber.org/streams" xmlns:xmpp="urn:xmpp:xbosh" host="b2bdv-node" ack="6961223303" from="chat.bid2bang.com" secure="true" xmpp:version="1.0">
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
   <iq xmlns="jabber:client" to="lmc@chat.bid2bang.com/tigase-1" type="result" from="lmc@chat.bid2bang.com" />
</body>

These messages are exchanged between converse and tigase and are overloading my VM with many requests.

I attached some log files from firebug and tigase that show whats happening.

Hope that someone can help me with this

Thank you


Replies (2)

Avatar?id=6023&size=32x32

Added by Artur Hefczyc TigaseTeam about 4 years ago

You are most likely encountered a bug in Tigase. Strange thing it is not consistent. I have created a bug report for further investigation: #2693. Please add yourself to watchers for the ticket to get progress updates.

Added by Rubem Silva about 4 years ago

Ok, thank you

    (1-2/2)