Skip to content

Commit e451c07

Browse files
committed
Add H2 connection pool with per-authority multiplexing
## Summary - Add AuthorityPool<C> that manages multiple H2 connections to a single authority (scheme+host+port), creating connections on demand when streams are exhausted and evicting failed ones - Add Pool<C> that routes requests to the correct AuthorityPool via a DashMap<ConnectionInfo, AuthorityPool<C>> - Add PoolBuilder with configurable max_connections and init_max_streams per authority
1 parent 1aeb48e commit e451c07

File tree

5 files changed

+736
-3
lines changed

5 files changed

+736
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/service-client/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ base64 = { workspace = true }
2525
bs58 = { workspace = true }
2626
bytes = { workspace = true }
2727
bytestring = { workspace = true }
28+
dashmap = { workspace = true }
29+
derive_builder = { workspace = true }
2830
futures = { workspace = true }
2931
h2 = "0.4.12"
3032
http = { workspace = true }

0 commit comments

Comments
 (0)