TCP重置在JPOS服务器上记录

发布于 2025-01-20 17:45:46 字数 379 浏览 4 评论 0原文

我已经设置了一个JPOS服务器来接收消息。我最近注意到,经过短暂的不活动,我们开始从服务器中实现tcp RESET错误,

请参见下面的频道配置

<channel name="post-channel" class="org.jpos.iso.channel.PostChannel">
    <property name="packager-realm" value="postpack-debug" />
    <property name="keep-alive" value="true" />
</channel>

I have set up a JPOS server to receive messages. I noticed recently that after a brief period of inactivity, we start realizing TCP RESET FROM SERVER errors

See below my configuration for the channel

<channel name="post-channel" class="org.jpos.iso.channel.PostChannel">
    <property name="packager-realm" value="postpack-debug" />
    <property name="keep-alive" value="true" />
</channel>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

童话 2025-01-27 17:45:46

另一端可能不喜欢您的频道发送的 keeplive,只需通过注释掉该行来禁用它即可。

如果您使用保持活动状态来保持通道连接而不因超时而结束,则应定期发送 0800` 网络消息。

在开发过程中,您可以通过将 timeout 属性设置为零(默认值为 30000 秒 = 5 分钟)来禁用该超时:

<property name="timeout" value="0"/>

但您不希望在生产环境中出现这种情况。

The other end is probably not liking the keep alive sent by your channel, just disable that by commenting out that line.

If youre using that keep alive to keep the channel connected without ending because of timeout, you should send0800` network messages at regular intervals.

While developing, you can disable that timeout from your side by setting the timeout property to zero (the default is, 30000 seconds = 5 minutes):

<property name="timeout" value="0"/>

But you don't want that in a production environment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文