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

Conform client/server connection handlers to h2 stream delegate #1875

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented May 1, 2024

Motivation:

The natural NIO API to use when dealing with HTTP/2 multiplexing doesn't emit user inbound events when streams are created and closed. Instead this is signalled via the NIOHTTP2StreamDelegate.

Modifications:

  • Conform the ClientConnectionHandler and the ServerConnectionManagementHandler to NIOHTTP2StreamDelegate.
  • Update tests

Result:

ClientConnectionHandler and ServerConnectionManagementHandler can be used as stream delegates with NIO HTTP/2 is configured for async multiplexing.

Motivation:

The natural NIO API to use when dealing with HTTP/2 multiplexing doesn't
emit user inbound events when streams are created and closed. Instead
this is signalled via the `NIOHTTP2StreamDelegate`.

Modifications:

- Conform the `ClientConnectionHandler` and the
  `ServerConnectionManagementHandler` to `NIOHTTP2StreamDelegate`.
- Update tests

Result:

`ClientConnectionHandler` and `ServerConnectionManagementHandler` can be
used as stream delegates with NIO HTTP/2 is configured for async
multiplexing.
@glbrntt glbrntt added the v2 A change for v2 label May 1, 2024
@glbrntt glbrntt requested a review from gjcairo May 1, 2024 17:36
@glbrntt glbrntt enabled auto-merge (squash) May 14, 2024 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 A change for v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants