No data flow after resume
Hello,I am using ElektronSDK/Cpp-C/Eta API. I am experimenting with pause and resume. First, I pause streamid 1 (associated with Login) with the following RsslRequestMsg.
RsslRequestMsg msg = RSSL_INIT_REQUEST_MSG;
msg.msgBase.streamId = 1;
msg.msgBase.domainType = RSSL_DMT_MARKET_PRICE;
msg.msgBase.msgClass = RSSL_MC_REQUEST;
msg.flags |= RSSL_RQMF_PAUSE;
msg.msgBase.msgKey.flags = RSSL_MKF_HAS_SERVICE_ID;
msg.msgBase.msgKey.serviceId = _service.serviceId;
Data flow stops here. I now resume after 5 seconds with the following RsslRequestMsg.
RsslRequestMsg msg = RSSL_INIT_REQUEST_MSG;
msg.msgBase.streamId = 1;
msg.msgBase.msgClass = RSSL_MC_REQUEST;
msg.msgBase.domainType = RSSL_DMT_MARKET_PRICE;
msg.flags |= RSSL_RQMF_STREAMING;
msg.msgBase.msgKey.flags = RSSL_MKF_HAS_SERVICE_ID;
msg.msgBase.msgKey.serviceId = _service.serviceId;
In my application log I see the following:
channelEventCallback
Connection down, reconnecting. Channel fd=26
channelEventCallback
Connection up! Channel fd=26
Cleared data dictionary for a fresh reload
Reactor channel socket fd: 26
loginMsgCallback
text: "Login accepted by host esch4p1slsp01b22."
directoryMsgCallback
Received Source Directory Refresh
Received serviceName: hEDD
Service State: Up
Found your service hEDD using serviceId: 902
dictionaryMsgCallback
Received Dictionary Response: RWFFld
Field Dictionary complete.
dictionaryMsgCallback
Received Dictionary Response: RWFEnum
Enumerated Types Dictionary complete.
channelEventCallback
Channel is ready
Setting maxOutputBuffers = 10000
Setting guaranteedOutputBuffers = 5000
So it appears, resume closes and reconnects the channel. It goes through login, directory, and dictionary callbacks as expected. But the data flow remains stopped as if subscriptions that were there prior to pause have been dropped and were not recovered when channel reconnected. This is not what I was expecting. What am I doing wrong? Thank you.
Best Answer
-
Hello, I have decided to implement subscription failover in the application code. Thanks.
0
Answers
-
Hello @traders
I am assuming that you want to pause the Login stream for "pause all" streams associated with the user.
I am not ETA C++ expert but I noticed that you send the Pause/Resume command for the Login stream with RSSL_DMT_MARKET_PRICE domain type. Should it be the RSSL_DMT_LOGIN domain type?
0 -
Hi,
Thanks for your reply. Changing the domain to RSSL_DMT_LOGIN (no other change) resulted in this:
After pauseloginMsgCallback
text: "Login Rejected. Username not supplied."
loginMsgCallback
text: "Login accepted by host esch4p1slsp01b22."After resume
loginMsgCallback
text: "Login Rejected. Username not supplied."
loginMsgCallback
text: "Login accepted by host esch4p1slsp01b22."And data flow was gone. Automatic recovery of subscriptions is really important.
0 -
Is this still an outstanding issue for you?
If it's still an outstanding issue, please provide the requested information.
AHS.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 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
- 367 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
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛