client channel receives io-timeout

502 views
Skip to first unread message

netma...@gmail.com

unread,
Nov 10, 2017, 6:04:34 AM11/10/17
to jPOS Users
Hi,

We received below logs in channel
<log realm="channel/172.16.20.34:39570" at="2017-11-10T16:19:54.717" lifespan="300110ms">
  <receive>
    <io-timeout/>
  </receive>
</log>

below is my server.xml
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="TxnmgrServer">
    <attr name="port" type="java.lang.Integer">1111</attr>
    <attr name="maxSessions" type="java.lang.Integer">20</attr>   
    <attr name="minSessions" type="java.lang.Integer">10</attr>

    <channel name="ClientChannel" class="org.jpos.iso.channel.ASCIIChannel" logger="Q2"
             packager="com.iz.zealcon.txnmgr.packager.ISO93CustomizedPackager" >
             <!-- <property name="packager-config" value="cfg/iso93ascii.xml" /> -->
    </channel>
<!-- Filtering IP Address To Connect To Our Server
        <property name="allow" value="192.168.1.1" />
    -->
    <request-listener class="com.iz.zealcon.txnmgr.server.TxnMgrRequestListener" logger="Q2">
        <property name="space" value="tspace:mySpace"/><!-- transient:default" /> -->
        <property name="queue" value="TransactionQueue" />
        <property name="timeout" value="10000" />
    </request-listener>
   
   
</server>

below is my channel.xml
<channel-adaptor name='Test' class="org.jpos.q2.iso.ChannelAdaptor"
    logger="Q2">
    <!-- <channel class="org.jpos.iso.channel.ASCIIChannel" logger="Q2"
        packager="org.jpos.iso.packager.ISO93APackager">

        <property name="host" value="192.168.0.32" />
        <property name="port" value="1111" />
    </channel> -->
   
    <channel class="org.jpos.iso.channel.ASCIIChannel" logger="Q2"
        packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="/home/client/jpostranslater/dist/cfg/iso8583_93.xml" />
        <property name="host" value="192.168.0.20" />
        <property name="port" value="1111" />
    </channel>
   
    <in>Test-SEND</in>
    <out>Test-RECEIVE</out>
    <reconnect-delay>10000</reconnect-delay>
</channel-adaptor>


Why does i received such error related to io-timeout?
I observed after having transaction immediately in 5 seconds, I received this error in channel, there is no such disconnection at server.

Please guide


Thanks,
prd

chhil

unread,
Nov 10, 2017, 8:45:36 AM11/10/17
to jpos-...@googlegroups.com
Long story short you need to configure a timeout in your client/server deploy files.


Which leads to understanding the exception.



You need to set a timeout.

If you are not using the newer code the timeout is not set.

-chhil



--
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f61b4dd0-2b76-4cf6-8a50-806f10f83a69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

netma...@gmail.com

unread,
Nov 10, 2017, 9:26:03 AM11/10/17
to jPOS Users
Hi Chil,

Thanks a lot for information. Here we haven't provided a timeout in channel or server, so by default it should take as 5 min.

What we observed that though we have sent request or received the response in channel, immediately after 5-10 seconds, we received io-timeout. Actualy if its default 5min, we shouldn't face the issue. However , there is no logs in server that channel has been disconnected at same time.

Please guide.


Thanks,
prd
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.

netma...@gmail.com

unread,
Nov 10, 2017, 9:35:31 AM11/10/17
to jPOS Users
Hi Chil,

Please find below logs for more details:
<log realm="channel/172.16.20.34:49112" at="2017-11-10T20:01:50.657" lifespan="1ms">
  <send>
    <isomsg direction="outgoing">
      <!-- org.jpos.iso.packager.GenericPackager[/home/client/jpostranslator/dist/cfg/iso8583_87.xml] -->
      <field id="0" value="0210"/>
      <field id="2" value="629887______6601"/>
      <field id="3" value="000000"/>
      <field id="4" value="000000010000"/>
      <field id="7" value="1110143149"/>
      <field id="11" value="107021"/>
      <field id="12" value="201649"/>
      <field id="13" value="1110"/>
      <field id="15" value="1110"/>
      <field id="18" value="4814"/>
      <field id="22" value="AEM"/>
      <field id="37" value="117314107021"/>
      <field id="38" value="729320"/>
      <field id="39" value="00"/>
      <field id="41" value="1       "/>
      <field id="49" value="840"/>
    </isomsg>
  </send>
</log>
<log realm="channel/172.16.20.34:58368" at="2017-11-10T20:01:54.710" lifespan="300103ms">
  <receive>
    <io-timeout/>
  </receive>
</log>

chhil

unread,
Nov 10, 2017, 9:56:05 PM11/10/17
to jpos-...@googlegroups.com
I am out of ideas, maybe someone else can assist you here.

One thing to note is the lifespan="300103ms" when your io-timeout is logged. That tells me is that your channel has been up for that long without any interaction (data) and hence it timed out.
Also not that the channel where you received the message is different from the channel that timed out 

Timeout : channel/172.16.20.34:58368
Message Received : channel/172.16.20.34:49112

-chhil



To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.

To post to this group, send email to jpos-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages