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 <liyu.yukiteru@bytedance.com>
  • Loading branch information
wfly1998 committed Nov 24, 2023
1 parent bef4e18 commit 2d9ef18
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 91 deletions.

0 comments on commit 2d9ef18

Please sign in to comment.