java - XMPP:BOSH client session getting closed randomly while connecting to openfire -


i message after sometime.

 org.jivesoftware.openfire.http.httpsession - request 3436024236568502 > 3436024236568501, ending session. 

basically send around 1,00,000 messages/queue/hour each of 400 bytes. see session terminated .

what message indicate , s possible solution?

you run following constraint

else if (rid > (lastrequestid + maxrequests)) {     log.warn("request " + rid + " > " + (lastrequestid + maxrequests) + ", ending session.");         throw new httpbindexception("unexpected rid error.",                 boshbindingerror.itemnotfound); } 

source

which means there many outstanding bosh requests. openfire defaults 2. try modify openfire settings xmpp.httpbind.client.requests.max, not recommend doing so. instead ensure bosh client sends new requests if there no more 1 outstanding one.


Comments