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

Add TCP keep-alive on ZMQ socket #1807

Merged
merged 1 commit into from
May 17, 2021
Merged

Add TCP keep-alive on ZMQ socket #1807

merged 1 commit into from
May 17, 2021

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented May 17, 2021

One of ZMQ's drawbacks is that subscribers on an unreliable network may silently disconnect from publishers in case of network failures.

In our case, we want to reconnect immediately when that happens, so we set a tcp keep-alive to ensure this.
Thanks @engenegr for noticing this and testing the fix.

Fixes #1789

One of ZMQ's drawbacks is that subscribers on an unreliable network may
silently disconnect from publishers in case of network failures.

In our case, we want to reconnect immediately when that happens, so we set
a tcp keep-alive to ensure this.

Fixes #1789
@t-bast t-bast requested a review from pm47 May 17, 2021 07:37
Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@t-bast t-bast merged commit 1fbede7 into master May 17, 2021
@t-bast t-bast deleted the zmq-keep-alive branch May 17, 2021 13:32
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.

Eclair can't keep up with Bitcoind
2 participants