Skip to content

Managing disconnections #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed

Managing disconnections #25

wants to merge 5 commits into from

Conversation

DanielePalaia
Copy link
Contributor

@DanielePalaia DanielePalaia commented Jan 28, 2025

This closes #17

Scope of this PR is to allow a possible way to manage client disconnections to the user.

The goal is not to provide auto-reconnection but give eventually this possibility to the user.

A user can define a callback to pass to the Connection constructor that will be invoked every time a remote disconnection happens.

while auto-reconnection should be already implemented in the qpid-proton library doesn't seem working properly. I made several tests and this is not happening so to start we can introduce this approach that cause minimal modification to the original library.

This PR also implements multi-node connection. Also this functionality while in theory supported by the qpid library doesn't seem to work properly so I made an easy reimplementation

The PR was tested with one node (doing a force disconnection) and on multinode (stopping a node), plus tests have been added simulating a disconnection (through http)

@DanielePalaia DanielePalaia marked this pull request as draft January 28, 2025 08:56
@DanielePalaia DanielePalaia marked this pull request as ready for review January 30, 2025 12:47
@DanielePalaia DanielePalaia changed the title [DRAFT]: managing disconnections Managing disconnections Jan 30, 2025
@DanielePalaia
Copy link
Contributor Author

Superseeded by #28

@DanielePalaia DanielePalaia deleted the connection_closed branch February 8, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manage disconnections
1 participant