Stop Mirth Connect keepalive messages from SFTP File Reader connector

1.7k Views Asked by At

My Mirth Connect v3.4 channel's File Reader source connector is configured as the SFTP reader to poll files from a remote server every 20 minutes and it works as expected.

But when the channel goes idle it starts sending [email protected] messages to the remote server every 10 seconds regardless of the Timeout setting of that source connector.

Is there anything else to configure to stop these messages from being sent to keep connection alive or is there any workarounds other than restarting the channel after each poll by some other channel?

1

There are 1 best solutions below

1
On

From the JSch changelog:

  • change: at TCP socket reading timeout, keep-alive message will be sent to the remote sshd. To disable this functionality, invoke explicitly Session.setServerAliveCountMax(0)

Unfortunately JSch does not provide any way to set this value from its own configuration file. So you'll have to use JavaScript and create a Session manually.