I am working on doing some testing with a consumer application using the ETA API. I am trying to run the following test:
1. Requests are made (these are a mix of invalid requests along with requests for realtime data)
2. I then unsubscribe 2 requests
3. I make more requests (these are a mix of invalid requests, both snapshot and subscriptions, and realtime data)
4. I then unsubscribe 3 more requests
5. Requests are then made again (this time they have a mix of delayed and realtime data)
6. I then unsubscribe all open subscriptions for realtime data
7. More requests are made (mix of delayed and realtime data)
8. Try to unsubscribe an invalid symbol to make sure the application does not crash
9. Final batch of requests are made
All the unsubscribe requests are executing as planned and are not causing any issues. What is looking to cause an issue is as I make multiple requests I eventually get the following RsslState
dataState: RSSL_DATA_SUSPECT
streamState: RSSL_STREAM_CLOSED
code: RSSL_SC_NONE
text: Item was reopened under new stream.
I know the requests that are being made are able to receive the data without a problem as I tested them on there own, but when they are being made in an additional requests this state is being received. The code as of right now will treat this as an invalid symbol. Is there a better way of handling this outcome or could it be an issue with sending the requests?