question

Upvotes
Accepted
129 6 14 23

The RFA C++ application didn't reconnect to the server

The RFA C++ consumer application stopped working. From the log file, I found that it didn’t reconnect back to the server.

[2017-05-23 19:28:11] Login Response : DataState 2 Suspect, StreamState 4 Closed, Code 3 NotAuthorized, A21: Access Denied. Waiting to connect to DACS server. Try request again.
[2017-05-23 19:28:11] [ERROR] Received Login : Failed
[2017-05-23 19:28:12] Logger message comes from RSSL_Adapter         context is [Tue May 23 19:28:12 2017]: (ComponentName) RSSL_Adapter: (Severity) Information: RSSL Channel closing on connection "Default::Connection_RSSL p2ps1.apac.net:14002" due to "requested disconnect"

Could you please verify why it didn’t reconnect to the server?

treprfarfa-api
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.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

From the log file, the application received the login closed response with “A21: Access Denied. Waiting to connect to DACS server. Try request again”. It showed that the stream state of the login stream was closed (StreamState 4 Closed).

Typically, the closed stream state indicates that the data is not available on this service or connection, and it is not likely to become available. When this happens with the login stream, RFA C++ will close the connection and it will not recover the connection. This is an expected behavior when receiving the login stream with closed stream state. To recover the connection, the application needs to re-login and re-subscribe to items.

However, you should contact ADS support to verify if it is a correct behavior in ADS to send the closed login response to the consumer when it is waiting to connect to DACS server. If the ADS sends the login response with CLOSED_RECOVER stream state instead of CLOSED stream state, RFA C++ will recover the connection and items on behalf of the application.

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.

Click below to post an Idea Post Idea