Skip to content

Add HTTP/2 multiplexed connection with concurrency control#4486

Open
muhamadazmy wants to merge 1 commit intorestatedev:mainfrom
muhamadazmy:pr4486
Open

Add HTTP/2 multiplexed connection with concurrency control#4486
muhamadazmy wants to merge 1 commit intorestatedev:mainfrom
muhamadazmy:pr4486

Conversation

@muhamadazmy
Copy link
Copy Markdown
Contributor

@muhamadazmy muhamadazmy commented Mar 13, 2026

Add HTTP/2 multiplexed connection with concurrency control

Summary

  • Introduce Connection, a Tower Service-based HTTP/2 connection that multiplexes requests over a single H2 session with semaphore-backed concurrency control
  • Add TcpConnector service and ConnectionInfo/IntoConnectionInfo abstractions for URI-based TCP connection establishment

Stack created with Sapling. Best reviewed with ReviewStack.

@claude
Copy link
Copy Markdown

claude bot commented Mar 17, 2026

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit in Settings → Usage.

Once credits are available, reopen this pull request to trigger a review.

Copy link
Copy Markdown
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Thanks a lot for creating this PR @muhamadazmy. It's quite some piece of work with the lock free connection sharing which is really cool. I left a few questions regarding the chosen memory orderings and about a possible problem when registering waiters on a closing connection which might cause those waiters to get stuck.

@slinkydeveloper slinkydeveloper removed their request for review March 30, 2026 07:48
@muhamadazmy muhamadazmy force-pushed the pr4486 branch 4 times, most recently from 66f4215 to b303703 Compare March 30, 2026 16:07
## Summary
- Introduce Connection<C>, a Tower Service-based HTTP/2 connection that multiplexes requests over a single H2 session with semaphore-backed concurrency control
- Add TcpConnector service and ConnectionInfo/IntoConnectionInfo abstractions for URI-based TCP connection establishment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants