External components timeout

Openfire 3.5.0/ rc1/rc2/release

Server to Server - Never close idle connectios

Debug log -

2008.04.08 10:24:40 ConnectionHandler: Closing connection that has been

idle: org.jivesoftware.openfire.nio.NIOConnection@12f1186 MINA Session:

(SOCKET, R: /127.0.0.1:13368, L: /127.0.0.1:5275, S:

0.0.0.0/0.0.0.0:5275)

2008.04.08 10:24:40 InternalComponentManager: Unregistering component for domain: mrim

2008.04.08 10:24:40 InternalComponentManager: Component unregistered for domain: mrim

2008.04.08 10:25:01 ConnectionHandler: Closing connection that has been idle: org.jivesoftware.openfire.nio.NIOConnection@185b010 MINA Session: (SOCKET, R: /192.168.2.144:1819, L: /192.168.2.16:5275, S: 0.0.0.0/0.0.0.0:5275)

2008.04.08 10:25:01 InternalComponentManager: Unregistering component for domain: jmc

2008.04.08 10:25:01 InternalComponentManager: Component unregistered for domain: jmc

mrim - localy running external component

jmc - remote running external component

mrim component log -

08/04/08-10:24:40 Connection to server lost

08/04/08-10:24:40 Connecting to XMPP server

How to set never close connections from external components?

up

I’m having exactly the same problem – PyIRCt is getting disconnected after 10 minutes of idle.

OK, after further review, this looks like it may be an expected consequence of the changes to resolve JM-1269.

The xmpp.component.idle property appears to specify the number of milliseconds you’d like for a component connection timeout, defaulting to 6 minutes (6 * 60 * 1000 = 360000).

no timeout - xmpp.component.idle value “-1”

Thanks for the feedback.

It appears that setting this to zero also works. There are a couple of related tests for other types of connections that prefer -1, though, so that’s probably the best choice, if for no other reason than to be consistent.