-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(conn): ConsumerEngine::reconnect loop (#271)
* Fix ConsumerEngine::reconnect loop - old message source drop doesn't trigger reconnect - call send_flow after successful subscribe_topic - subscribe_topic loop keep track of time Signed-off-by: Eloi DEMOLIS <[email protected]> * Remove drop_signal from consumer and producer - close_consumer and close_producer are synchronously called at the beginning of reconnect and asynchronously upon drop - close_consumer send a Register::RemoveConsumer on registrations to remove the old resolver from the consumers BTreeMap which cleans the old "message source thread" note: it is not clear when close_consumer and close_producer should be called, if all cases are covered and in each cases how to properly handle errors Signed-off-by: Eloi DEMOLIS <[email protected]> * Retryable operations refactor: - merge connection and reconnection code for TopicConsumer in retry_subscribe_consumer - merge connection and reconnection code for TopicProducer in retry_create_producer - merge consumer and producer (re)connection error handling in handle_retry_error Signed-off-by: Eloi DEMOLIS <[email protected]> --------- Signed-off-by: Eloi DEMOLIS <[email protected]>
- Loading branch information
Showing
9 changed files
with
354 additions
and
764 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.