Hi all.
I have a .Net Provider and Consumer happily chatting to each other over TREP using Generic Messages. Both sides are implemented with ValueAdd.
Before they start exchanging messages, I establish the stream with a request / response handshake as documented. I'm setting InitialImage | InterestAfterRefresh which I thought would keep the stream open. However, I've noticed that after a period of inactivity, my Consumer seems to send a magic closeMsg:
<!-- Outgoing Message to 'xxxxx:14002' on 'localhost' interface --> (server name removed for security)
<!-- Time: 14:21:38:003 -->
<!-- rwfMajorVer="14" rwfMinorVer="0" -->
<closeMsg domainType="202" streamId="3" containerType="RSSL_DT_NO_DATA" flags="0x0" dataSize="0">
<dataBody>
</dataBody>
</closeMsg>
There's nowhere in my code where I submit a close message, so I guess it's something within the RFA library that creates this message.
When I receive this at my Provider, I assume the Consumer has shut down and so I stop chatting:
<!-- Incoming Message from 'xxxxx' on 'localhost' interface -->
<!-- Time: 14:21:38:047 -->
<!-- rwfMajorVer="14" rwfMinorVer="0" -->
<closeMsg domainType="202" streamId="4384855" containerType="RSSL_DT_NO_DATA" flags="0x0" dataSize="0">
<dataBody>
</dataBody>
</closeMsg>
This is not what I want! So how can I suppress this mysterious Close Message that originates from my Consumer? Or failing that, is there any way to differentiate between a valid close message sent when the Consumer shuts down and this spurious one?
Thanks
Rick