Skip to content
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

Heartbeat timeout handling #364

Closed
ystasivs opened this issue Mar 15, 2022 · 2 comments
Closed

Heartbeat timeout handling #364

ystasivs opened this issue Mar 15, 2022 · 2 comments

Comments

@ystasivs
Copy link

Hello, i wonder how client handles heartbeat timeout.
From source it's clear to me that new valid heartbeat from server does nothing but just log. Is it possible to run within lapin custom handler that will do the reconnect on timeout?

@Keruspe
Copy link
Collaborator

Keruspe commented Mar 22, 2022

A heartbeat timeout will trigger a connection error, resolving all pending futures with an error.

Lapin currently doesn't support automatic reconnection as of now (see #312 )

@Keruspe
Copy link
Collaborator

Keruspe commented Mar 22, 2022

You can also register a callback here which will be called: https://docs.rs/lapin/latest/lapin/struct.Connection.html#method.on_error

@Keruspe Keruspe closed this as completed May 19, 2023
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

No branches or pull requests

2 participants