-
Notifications
You must be signed in to change notification settings - Fork 996
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
fix(firehose): Set connection window size to the maximum #3818
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,9 @@ impl FirehoseEndpoint { | |
.expect("TLS config on this host is invalid"), | ||
_ => panic!("invalid uri scheme for firehose endpoint"), | ||
} | ||
.connect_timeout(Duration::from_secs(10)); | ||
.connect_timeout(Duration::from_secs(10)) | ||
.http2_keep_alive_interval(Duration::from_secs(30)) | ||
.http2_adaptive_window(true); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This causes disconnections when connecting to firehose through a GCP Load Balancer. ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for testing that! I've removed this, and took a different approach of setting a very large window size. |
||
|
||
let uri = endpoint.uri().to_string(); | ||
//connect_lazy() used to return Result, but not anymore, that makes sence since Channel is not used immediatelly | ||
|
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 too low IMHO. While I didn't experience disconnections with this setting, some backends are very restrictive on this (at 10secs, it DOES generate similar disconnections as with http2_adaptive_window)
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.
I've removed the keep alive for now, to focus this PR on the stalling bug.