UPA Version: 8.0.0.L1
We have an application using UPA which creates/closes market price streams, and reuses streamIDs. The current logic for closing a stream is as follows:
- Send RsslCloseMsg, set flag so we are sent an ACK.
- Once ACK is received, add streamID to list to be reused.
We are seeing a few issues with this. If the stream is busy, we can receive some UPDATES after we receive the ACK.
Also, if we 'quickly' reuse the streamID and send an open request after we receive the ACK, we get the following message:
"Request Rejected: Cannot request new item on open stream."
Is it correct to assume that once we receive an ACK from a CloseMsg the streamId can be reused / the previous stream is correctly closed?
We have also tried using rsslIsFinalMsg to check if we have received the final message for the stream, but this always returns false for close message ACKS.