-
Notifications
You must be signed in to change notification settings - Fork 45
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
Conversation
libs/sdk-common/src/breez_server.rs
Outdated
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)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is duplicate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, fixed.
For clippy rebase to main |
(cherry picked from commit a5073e73105e9265cacd3169c741e7209c03a596)
0a424e9
to
d4c6fae
Compare
There was a problem hiding this 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
I added a comment there: https://github.com/Blockstream/greenlight/pull/548/files#r1863998844 |
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.