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

Set PermitWithoutStream to true #388

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

neekolas
Copy link
Collaborator

@neekolas neekolas commented May 2, 2024

tl;dr

  • Our Rust GRPC clients have keep_alive_while_idle set to true, but our nodes have the PermitWithoutStream option defaulted to false. When these pings come in without an open stream, the server should be sending a GOAWAY message and disconnecting. I'm surprised it isn't causing more issues, but it's safe to enable the flag on the server so we might as well try and see if it improves mobile streaming.

@neekolas neekolas requested a review from nplasterer May 2, 2024 21:12
grpc.KeepaliveEnforcementPolicy(keepalive.EnforcementPolicy{
MinTime: 15 * time.Second,
PermitWithoutStream: true,
MinTime: 15 * time.Second,
Copy link
Collaborator Author

@neekolas neekolas May 2, 2024

Choose a reason for hiding this comment

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

Also, @nplasterer. I just added this config setting in a previous PR to turn it to 15 seconds. Before it was set to the default of 5 minutes. I wonder how many Rust streaming problems were related to that.

Copy link
Contributor

Choose a reason for hiding this comment

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

O wow! 🤞

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.

3 participants