Receiving close message
Randomly receiving a close message after the application is running for an hour or so. The xml trace indicates the the stream was closed even though this close is not initiated by the application.
<!-- Outgoing Message (Channel IPC descriptor = 13) -->
<!-- Time: 12:28:35:403 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<closeMsg domainType="RSSL_DMT_LOGIN" streamId="1" containerType="RSSL_DT_NO_DATA" flags="0x0" dataSize="0">
<dataBody>
</dataBody>
</closeMsg>
<!-- End Message (Channel IPC descriptor = 13) -->
<!-- rsslCloseChannel Connection closed (Channel IPC descriptor = 13) -->
<!-- Time: 12:28:35:413 -->
Any help to understand the problem would be of great.
Thanks,
Ketul
Best Answer
-
The login close message is sent by the API or application. Typically, the OmmConsumer will send the login close message when it is uninitialized or destructed.
For example, the following code deletes the OmmConsumer after running for 5 seconds.
try {
AppClient client;
OmmConsumer* _pConsumer = new OmmConsumer( OmmConsumerConfig().host("localhost:9998").username("user"));
UInt64 handle = _pConsumer->registerClient( ReqMsg().serviceName( "DIRECT_FEED" ).name( "JPY=" ), client );
sleep(5000); // API calls onRefreshMsg(), onUpdateMsg(), or onStatusMsg()
delete _pConsumer;
sleep(100000);
}The trace log will show that the API sent the login close message to the server.
<!-- Outgoing Message (Channel IPC descriptor = 260) -->
<!-- Time: 12:01:43:244 -->
<!-- rwfMajorVer="14" rwfMinorVer="1" -->
<closeMsg domainType="RSSL_DMT_LOGIN" streamId="1" containerType="RSSL_DT_NO_DATA" flags="0x0" dataSize="0">
<dataBody>
</dataBody>
</closeMsg>Please make sure the OmmConsumer wasn't destructed or the application didn't send the login close message by using the login handle.
0
Answers
-
Hi @ketul.barot,
Can you tell us little bit more about the application -
1. Is it a new application, and has been running in the past?
2. What infrastructure are you connecting to - local RTMDS or RTO cloud?
A close on the login stream typically means that your session has expired. Is something else happening to the application at that instance?
0 -
Hi @Gurpreet ,
Application has been running in the past.
Connecting to local RTMDS.
The session is active for an hour or so and then suddenly receive the closeMsg nothing else happening. This is the login request message I sent,
<requestMsg domainType="RSSL_DMT_LOGIN" streamId="1" containerType="RSSL_DT_NO_DATA" flags="0x4 (RSSL_RQMF_STREAMING)" dataSize="0">
<key flags="0x22 (RSSL_MKF_HAS_NAME|RSSL_MKF_HAS_ATTRIB)" name="stats" attribContainerType="RSSL_DT_ELEMENT_LIST">
<attrib>
<elementList flags="0x8 (RSSL_ELF_HAS_STANDARD_DATA)">
<elementEntry name="ApplicationId" dataType="RSSL_DT_ASCII_STRING" data="256"/>
<elementEntry name="ApplicationName" dataType="RSSL_DT_ASCII_STRING" data="ema"/>
<elementEntry name="Position" dataType="RSSL_DT_ASCII_STRING" data="A.B.C.D/net"/>
</elementList>
</attrib>
</key>
<dataBody>
</dataBody>
</requestMsg>
And this is the refresh message,
<refreshMsg domainType="RSSL_DMT_LOGIN" streamId="1" containerType="RSSL_DT_NO_DATA" flags="0x28 (RSSL_RFMF_HAS_MSG_KEY|RSSL_RFMF_SOLICITED)" groupId="0" dataState="RSSL_DATA_OK" streamState="RSSL_STREAM_OPEN" code="RSSL_SC_NONE" text="" dataSize="0">
<key flags="0x26 (RSSL_MKF_HAS_NAME|RSSL_MKF_HAS_NAME_TYPE|RSSL_MKF_HAS_ATTRIB)" name="stats" nameType="1" attribContainerType="RSSL_DT_ELEMENT_LIST">
<attrib>
<elementList flags="0x8 (RSSL_ELF_HAS_STANDARD_DATA)">
<elementEntry name="AllowSuspectData" dataType="RSSL_DT_UINT" data="1"/>
<elementEntry name="ApplicationId" dataType="RSSL_DT_ASCII_STRING" data="256"/>
<elementEntry name="DisableDataConversion" dataType="RSSL_DT_UINT" data="0"/>
<elementEntry name="InstanceId" dataType="RSSL_DT_ASCII_STRING" data=""/>
<elementEntry name="ProvidePermissionExpressions" dataType="RSSL_DT_UINT" data="1"/>
<elementEntry name="ProvidePermissionProfile" dataType="RSSL_DT_UINT" data="1"/>
<elementEntry name="Role" dataType="RSSL_DT_UINT" data="0"/>
<elementEntry name="SingleOpen" dataType="RSSL_DT_UINT" data="1"/>
<elementEntry name="SupportProviderDictionaryDownload" dataType="RSSL_DT_UINT" data="0"/>
<elementEntry name="SupportBatchRequests" dataType="RSSL_DT_UINT" data="7"/>
<elementEntry name="SupportViewRequests" dataType="RSSL_DT_UINT" data="0"/>
</elementList>
</attrib>
</key>
<dataBody>
</dataBody>
</refreshMsg>
0 -
Hi @ketul.barot,
Nothing exceptional is evident from these API log messages. Can you request your market data administrator to enable the logs on the ADS, so that we can see why your app gets logged out.
For the sake of test, can you please use one of the basic EMA example applications like 100 Consumer and see if the behavior is same, and the example receives a login closed message as well.
0 -
@Jirapongse Yes indeed my application was exiting and that was destructing OmmConsumer. Fixed the application exit and it resolved the issue. Thanks everyone for the help
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 370 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛