question

Upvotes
Accepted
21 0 1 0

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.

elektronrefinitiv-realtimeelektron-sdkrrteta-apielektron-transport-apic++
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

@traders

Is this still an outstanding issue for you?

If it's still an outstanding issue, please provide the requested information.

AHS.

Upvotes
Accepted
21 0 1 0

Hello, I have decided to implement subscription failover in the application code. Thanks.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
11.5k 16 7 10

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?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Hi,

Thanks for your reply. Changing the domain to RSSL_DMT_LOGIN (no other change) resulted in this:

After pause

 loginMsgCallback
 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.

Upvotes
11.5k 16 7 10

Hello @traders

Could you please enable the XML Tracing, replicate the issue and share the tracing file when the issue occurs? The XML Tracing file contains incoming-outgoing messages between the API and Server. You can find how to enable XML tracing in this post.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Hello @traders

Does the problem still persist in your environment?

Click below to post an Idea Post Idea