Hi all,
I’m experiencing a sudden timeout issue on my jPOS channel. Everything was working fine, but now I’m getting the following error right after sending a message:
Has anyone encountered this before? What could be the possible reasons for a sudden SocketTimeoutException: Read timed out after sending a message? and the timeframe is very short
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/2568f83e-0cee-491c-af80-9add0cc1138cn%40googlegroups.com.
I noticed that the timeout exception occurred immediately after there was outgoing traffic on the channel. Based on the logs, a message was sent and then the channel disconnected due to a timeout almost right away.
Does this mean there actually was traffic on the line?
Why would the timeout trigger right after sending a message, instead of after a period of inactivity?
Is this expected behavior, or could there be something wrong with the channel configuration or the way the timeout is being handled?
this is my configuration
<channel-adaptor name="channel-adaptor1" class="org.jpos.q2.iso.CustomChannelAdaptor" logger="Q2">
<channel class="org.jpos.iso.channel.CustomChannel" logger="Q2" realm="post-channel" packager="org.jpos.iso.packager.BASE24Packager" header="ISO006000060">
<property name="host" value="x.x.x.x"/>
<property name="port" value="xxxxx"/>
<property name="override-header" value="false"/>
<property name="packager-logger" value="Q2"/>
<property name="processMessageLengthOnReceive" value="true"/>
<property name="processTrailerOnReceive" value="true"/>
<property name="processMessageLengthOnSend" value="true"/>
<property name="processTrailerOnSend" value="true"/>
</channel>
<!--session></session-->
<in>send_mux1</in>
<out>receive_mux1</out>
<reconnect-delay>300000</reconnect-delay>
<max-idle-time>10000</max-idle-time>
<mux>mux.eft-mux1</mux>
<messages>
<echo><![CDATA[<isomsg>
<header>49534F303035303030303430</header>
<field id='0' value='0800'/>
<field id='7' value='${datetime}'/>
<field id='11' value='${tracenumber}'/>
<field id='70' value='301'/>
</isomsg>]]></echo>
<signon><![CDATA[<isomsg>
<header>49534F303035303030303430</header>
<field id='0' value='0800'/>
<field id='7' value='${datetime}'/>
<field id='11' value='${tracenumber}'/>
<field id='48' value='6011001112M003602'/>
<field id='70' value='001'/>
</isomsg>]]></signon>
<!--signoff></signoff-->
</messages>
</channel-adaptor>
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/e7a8dc43-d4f7-4bb2-9e11-7c98fd3294a6n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/f449a387-802d-4431-9981-8b7d67afc816n%40googlegroups.com.
- Is the timeout parameter at point 6 the same as max idle?
Andrés Alcarraz
To view this discussion visit https://groups.google.com/d/msgid/jpos-users/f449a387-802d-4431-9981-8b7d67afc816n%40googlegroups.com.