Skip to content

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Sep 16, 2024

Motivation:

The NIOPosix and NIOTS HTTP/2 server transports have quite a lot of shared code. The only meaningfull difference between them is how they create their channels.

Modification:

  • Factor out the shared parts to a CommonHTTP2ServerTransport
  • Allow each tranport to inject a factory for creating a listener

Result:

Less duplication

Motivation:

The NIOPosix and NIOTS HTTP/2 server transports have quite a lot of
shared code. The only meaningfull difference between them is how they
create their channels.

Modification:

- Factor out the shared parts to a `CommonHTTP2ServerTransport`
- Allow each tranport to inject a factory for creating a listener

Result:

Less duplication
@glbrntt glbrntt requested a review from gjcairo September 16, 2024 13:25
@glbrntt glbrntt added the version/v2 Relates to v2 label Sep 16, 2024
Copy link
Collaborator

@gjcairo gjcairo left a comment

Choose a reason for hiding this comment

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

Nice one

@glbrntt glbrntt merged commit f3380d2 into grpc:main Sep 16, 2024
14 of 17 checks passed
@glbrntt glbrntt deleted the v2/simplify-h2-server-transports branch September 16, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version/v2 Relates to v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants