Skip to content

Commit

Permalink
chore(volo-http): bump to hyper 1.0.0
Browse files Browse the repository at this point in the history
Note that `hyper` v1.0.0-rc4 replaces IO traits from `tokio` with its
IO traits in `hyper::rt`.  To solve the building problem, we can
introduce `TokioIo` from `hyper-util` and wrap the `DefaultIncoming`
by the `TokioIo`.

Also, the `volo-grpc` uses `hyper` v0.14 with its auto-version
(using both http1 and http2) and graceful shutdown, but the latest
`hyper` and `hyper-util` cannot use the both features at the same
time, so the version of `hyper` in `volo` has not been upgraded.

Ref:
- hyperium/hyper@f9f65b7
- hyperium/hyper#3013
- hyperium/hyper#2862

Signed-off-by: Yu Li <[email protected]>
  • Loading branch information
yukiiiteru committed Nov 27, 2023
1 parent 3b7aea4 commit 6a99ac5
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 90 deletions.
Loading

0 comments on commit 6a99ac5

Please sign in to comment.