TCP reset recorded on JPOS server

242 views Asked by At

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>
1

There are 1 answers

1
Andrés Alcarraz On

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 send 0800` 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.