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

configure grpc connection for breez server #1132

Merged
merged 2 commits into from
Dec 1, 2024
Merged

Conversation

roeierez
Copy link
Member

This PR allows Breez grpc connection to recover from a stale connection in no more than 5 seconds. Previously it could take up to 20 seconds.

@roeierez roeierez requested review from dangeross and JssDWt November 28, 2024 21:53
Ok(Endpoint::from_shared(server_url.to_string())?
.http2_keep_alive_interval(Duration::new(5, 0))
.tcp_keepalive(Some(Duration::from_secs(5)))
.http2_keep_alive_interval(Duration::from_secs(5))
Copy link
Contributor

Choose a reason for hiding this comment

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

This is duplicate

Copy link
Member Author

Choose a reason for hiding this comment

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

Right, fixed.

libs/sdk-common/src/breez_server.rs Show resolved Hide resolved
@JssDWt
Copy link
Contributor

JssDWt commented Nov 29, 2024

For clippy rebase to main

(cherry picked from commit a5073e73105e9265cacd3169c741e7209c03a596)
@roeierez roeierez force-pushed the configure_grpc_connection branch from 0a424e9 to d4c6fae Compare November 29, 2024 15:00
@roeierez roeierez requested a review from JssDWt November 29, 2024 15:01
Copy link
Contributor

@JssDWt JssDWt left a comment

Choose a reason for hiding this comment

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

LGTM
It might be that gl-client gets different keepalive settings: Blockstream/greenlight#548

@roeierez
Copy link
Member Author

LGTM It might be that gl-client gets different keepalive settings: Blockstream/greenlight#548

I added a comment there: https://github.com/Blockstream/greenlight/pull/548/files#r1863998844
I will wait for Christian to respond and ensure we both using the same settings.

@roeierez roeierez merged commit a1dad04 into main Dec 1, 2024
9 checks passed
@JssDWt JssDWt deleted the configure_grpc_connection branch December 1, 2024 15:23
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.

2 participants