Skip to content

Don't ack pings twice #1534

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

Merged
merged 1 commit into from
Dec 19, 2022
Merged

Don't ack pings twice #1534

merged 1 commit into from
Dec 19, 2022

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Dec 16, 2022

Motivation:

gRPC Swift is emitting two acks per ping. NIOHTTP2 is emitting one and the keepalive handler is emitting the other.

Modifications:

  • Don't emit ping acks from the keep alive handler; just let the H2 handler do it.

Result:

Motivation:

gRPC Swift is emitting two acks per ping. NIOHTTP2 is emitting one and
the keepalive handler is emitting the other.

Modifications:

- Don't emit ping acks from the keep alive handler; just let the H2
  handler do it.

Result:

- No unnecessary ping acks are emitted.
- Resolves grpc#1520
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Dec 16, 2022
@glbrntt glbrntt requested a review from FranzBusch December 16, 2022 12:54
@glbrntt glbrntt merged commit 9fc6ead into grpc:main Dec 19, 2022
@glbrntt glbrntt deleted the gb-pings branch December 19, 2022 08:41
WendellXY pushed a commit to sundayfun/grpc-swift that referenced this pull request Aug 24, 2023
Motivation:

gRPC Swift is emitting two acks per ping. NIOHTTP2 is emitting one and
the keepalive handler is emitting the other.

Modifications:

- Don't emit ping acks from the keep alive handler; just let the H2
  handler do it.

Result:

- No unnecessary ping acks are emitted.
- Resolves grpc#1520
pinlin168 pushed a commit to sundayfun/grpc-swift that referenced this pull request Aug 24, 2023
Motivation:

gRPC Swift is emitting two acks per ping. NIOHTTP2 is emitting one and
the keepalive handler is emitting the other.

Modifications:

- Don't emit ping acks from the keep alive handler; just let the H2
  handler do it.

Result:

- No unnecessary ping acks are emitted.
- Resolves grpc#1520
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.

Duplicated GOAWAY from Client on graceful shut down by graces-go server
3 participants