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

Ignore state machine inputs in unexpected states #1374

Merged
merged 3 commits into from
Mar 25, 2022

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Mar 24, 2022

Motivation:

When we ratchet down the last stream ID in a GOAWAY frame, we should
only do it if we're quiescing. If we aren't quiescing then we should
just ignore the request to do it.

Modifications:

  • Ignore requests to ratchet down the last stream ID in a GOAWAY if
    we're not quiescing.

Result:

Fewer traps.

Motivation:

When we ratchet down the last stream ID in a GOAWAY frame, we should
only do it if we're quiescing. If we aren't quiescing then we should
just ignore the request to do it.

Modifications:

- Ignore requests to ratchet down the last stream ID in a GOAWAY if
  we're not quiescing.

Result:

Fewer traps.
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Mar 24, 2022
@glbrntt glbrntt requested a review from Lukasa March 24, 2022 17:41
Copy link
Collaborator

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

Nice catch

@glbrntt
Copy link
Collaborator Author

glbrntt commented Mar 24, 2022

Allocation limits are incorrect because of the recent NIO release. Should be fixed by #1375

@glbrntt glbrntt merged commit 593fe0f into grpc:main Mar 25, 2022
@glbrntt glbrntt deleted the gb-that-was-silly branch March 25, 2022 09:00
bimawa pushed a commit to StreamLayer/grpc-swift that referenced this pull request Jun 17, 2022
Motivation:

When we ratchet down the last stream ID in a GOAWAY frame, we should
only do it if we're quiescing. If we aren't quiescing then we should
just ignore the request to do it.

Modifications:

- Ignore requests to ratchet down the last stream ID in a GOAWAY if
  we're not quiescing.

Result:

Fewer traps.
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