Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add heartbeat handling to key iteration (#203)
* Add heartbeat detection to listing keys and history. In cases where the stream is purged as the client is making progress it could stall it as client is relying on numpending to signal out of the processing. By detecting a heartbeat, that means the server didn't have anything to send in the last 5s, providing a hint that we can use to signal that the operation is done. Introduce a heartbeat case to handle key iteration status updates. This ensures proper key fetching and stops the iteration appropriately upon receiving a heartbeat. * history for kv has the same issue - if values are purged in flight, the iteration may hang. Signed-off-by: Alberto Ricart <alberto@synadia.com> --------- Signed-off-by: Alberto Ricart <alberto@synadia.com>
- Loading branch information