RFA c++ item recovery

Lalit
Lalit Newcomer
edited March 7 in RFA

I have provider and consumer application of RFA rssl C++. Consumer application starts first and provider application starts later. when consumer application request item at that time only few items were ready and for other item I get error status. How should I retrieve the provider items when they get ready at later point of time.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @Lalit

    If the provider didn't send anything back to the client, RFA supports the item's maxItemRecoveryRetryCount and requestTimeout configurations.

    The default value of the requestTimeout configuration is 45000 ms and the default value of the maxItemRecoveryRetryCount configuration is -1.

    image.png image.png

    For more information, please refer to the RFA C++ Configuration guide.

    In this case, the application will receive the Timeout status code.

    2025 Mar 10 15:04:48.796 ST GMT+07:00 19F00 B740   594 TRACE <- Received MMT_MARKET_PRICE Status TRI.N
    serviceName : ELEKTRON_DD
    symbolName : TRI.N
    streamState : Open
    dataState : Suspect
    statusCode : Timeout
    statusText : Item Request Timeout.
    2025 Mar 10 15:04:58.823 ST GMT+07:00 19F00 B740 594 TRACE <- Received MMT_MARKET_PRICE Status TRI.N
    serviceName : ELEKTRON_DD
    symbolName : TRI.N
    streamState : Open
    dataState : Suspect
    statusCode : Timeout
    statusText : Item Request Timeout.

    The streamState state is still Open which means that RFA will recover the item.

    You need to check the streamState. If the streamState is closed, this means that RFA will not recover the item.

Answers