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>
The other end is probably not liking the
keep alivesent by your channel, just disable that by commenting out that line.If you
re 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
timeoutproperty to zero (the default is, 30000 seconds = 5 minutes):But you don't want that in a production environment.