简体   繁体   English

停止来自SFTP File Reader连接器的Mirth Connect keepalive消息

[英]Stop Mirth Connect keepalive messages from SFTP File Reader connector

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. My Mirth Connect v3.4通道的文件读取器源连接器配置为SFTP阅读器,以每20分钟轮询一次来自远程服务器的文件,并且可以正常工作。

But when the channel goes idle it starts sending keepalive@jcraft.com messages to the remote server every 10 seconds regardless of the Timeout setting of that source connector. 但是,当通道空闲时,无论该源连接器的超时设置如何,它都会每10秒向远程服务器发送一次keepalive@jcraft.com消息。

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? 是否还有其他配置可阻止发送这些消息以保持连接有效,或者是否有其他解决方法,而不是在每次其他通道每次轮询后重新启动通道?

From the JSch changelog: 从JSch更改日志中:

  • change: at TCP socket reading timeout, keep-alive message will be sent to the remote sshd. 更改:在TCP套接字读取超时时,保持活动消息将发送到远程sshd。 To disable this functionality, invoke explicitly Session.setServerAliveCountMax(0) 若要禁用此功能,请显式调用Session.setServerAliveCountMax(0)

Unfortunately JSch does not provide any way to set this value from its own configuration file. 不幸的是,JSch没有提供任何方法来从其自己的配置文件中设置该值。 So you'll have to use JavaScript and create a Session manually. 因此,您必须使用JavaScript并手动创建一个Session。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM