Openfire + BOSH (Candy): 60s idle timeout issue

Hey folks,

I’m trying to set up a webchat interface with my OpenFire server.

I’ve got things set up and working so far, but webchat clients get disconnected after 60s of inactivity. I’d like to increase that to 10 minutes, preferably.

Setup:

  • Openfire 3.9.2Alpha (custom snapshot of 3.9.1 release + fix for TLS S2S) on CentOS
  • Web frontend: nginx, using proxy_pass to connect to localhost:7443 over HTTPS (http-bind/BOSH) - since I’d prefer to keep all communication encrypted.
  • Webchat frontend script: candy-chat
  • Using anonymous connections to the OF server, restricted to localhost
  • xmpp.httpbind.client.idle seems to have no effect
  • nginx keepalive_timeout seems to have no effect

I’ve looked into keepalive timeouts in nginx, etc and that’s all fine, it seems the connection is closed between the proxy and OF.

Any ideas?

Yep, Does anyone know the solution to this?

@Alpay_TAYFUN you’re responding to a ten-years-old topic. Things have changed in the mean time. :slight_smile:

What kind of connection mechanism is your webclient using? Are you using the Candy application? If so, did you install that as a stand-alone instance, or are you using our plugin?

Hi :slight_smile:
It’s great that you support such a system.

Version: Openfire 4.8.0
Java Version:|21.0.2 Oracle Corporation – Java HotSpot™ 64-Bit Server VM|
Appserver:|jetty/10.0.18|
Server Host Name (FQDN):|subdomain.xxx.local|
|OS / Hardware:|Windows Server 2016 / amd64|

server settings / Idle Connections Policy

Disconnect clients after they have been idle for: 30000 sec
and Send an XMPP Ping request to idle clients. OK

Candy : 0.0.0 and yes I use the plugin.

http://subdomain.xxxx.local:7070/candy/

Can you please look in the development console of your browser when Candy is timing out, to see if anything is logged there?

Are there any relevant messages in Openfire’s log maybe?

OPENFIRE PANEL LOG : 2024.02.17 13:14:12.379 INFO [TaskEngine-pool-486]: org.jivesoftware.openfire.http.HttpSessionManager - Closing idle session 292rku1x7p: alpay.tayfun@subdomain.xxxx.local/openfire-candy-GiitjrtP from IP XXXX

SS:
Chrome and Openfire



libs.bundle.js :

    /** PrivateFunction: _sendRestart
 *  Send an xmpp:restart stanza.
 */
    _sendRestart: function() {
        this._data.push("restart");
        this._proto._sendRestart();
        this._idleTimeout = setTimeout(this._onIdle.bind(this), 100);

100 second ? maybe :slight_smile:

Do you have any thoughts or solutions =)