Skip to content

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

2 participants