liveSourceToolkit->GetLiveData() returns with LIVE_REQUEST_TIMED_OUT after a brief network disconnection

Hi,

We encountered a situation where there was a network disconnection for a brief period after which liveSourceToolkit->GetLiveData() always returned LIVE_REQUEST_TIMED_OUT.

We were doing this in an infinite loop and hence it did not get the Live Data at all after the disconnection. However, after breaking out of the loop re-starting the entire procedure (login, factory->CreateInstance(), sourceToolkit->Connect(), liveSourceToolkit->StartLiveStream() ), we could get the live data again.

Is this the only way to do it or is there something that we’re missing?

Hi Treyambak M,

This is expected behavior, you cant expect GetLiveData to automatically reconnect.

In your loop you should catch the correct exception and check the error and act accordingly.

You will need to reconnect before the data can be retrieved as the socket connection is not there anymore due to the network failure.