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.