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

Only schedule a close if the ping was actually sent #1626

Merged
merged 2 commits into from
Jul 5, 2023

Conversation

marhas
Copy link
Contributor

@marhas marhas commented Jul 5, 2023

If an outbound ping is blocked, I believe we should not schedule a close of the connection.

For me this caused intermittent issues with "unavailable (14): Transport became inactive" when calling the same streaming endpoint repeatedly. The last outbound ping would be blocked by shouldBlockPing because the stream had closed, but a closeConnection call is still scheduled, potentially closing the connection of a consecutive call when fired.

@linux-foundation-easycla
Copy link

CLA Missing ID CLA Not Signed

1 similar comment
@linux-foundation-easycla
Copy link

CLA Missing ID CLA Not Signed

@glbrntt
Copy link
Collaborator

glbrntt commented Jul 5, 2023

@marhas -- thanks for the PR. I'll need you to fix up your CLA before I can review this though.

@marhas
Copy link
Contributor Author

marhas commented Jul 5, 2023 via email

@glbrntt
Copy link
Collaborator

glbrntt commented Jul 5, 2023

Oh sorry my mistake; the bot usually updates the comment when the issue is resolved but I see the check has passed.

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jul 5, 2023
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this Marcel!

@glbrntt glbrntt enabled auto-merge (squash) July 5, 2023 13:19
@glbrntt glbrntt merged commit bf34fdd into grpc:main Jul 5, 2023
@marhas
Copy link
Contributor Author

marhas commented Jul 5, 2023

Thanks for reviewing and merging it so quickly!

WendellXY pushed a commit to sundayfun/grpc-swift that referenced this pull request Aug 24, 2023
pinlin168 pushed a commit to sundayfun/grpc-swift that referenced this pull request Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants