bump to hyper-1.0.0-rc4

This commit is contained in:
mdecimus
2023-07-16 10:34:18 +02:00
parent a1a6d7d9c0
commit 17af58941b
10 changed files with 208 additions and 167 deletions

View File

@@ -41,8 +41,9 @@ reqwest = { version = "0.11", default-features = false, features = ["rustls-tls-
bytes = "1.4.0"
futures = "0.3"
ece = "2.2"
hyper = { version = "1.0.0-rc.3", features = ["server", "http1", "http2"] }
http-body-util = "0.1.0-rc.2"
hyper = { version = "1.0.0-rc.4", features = ["server", "http1", "http2"] }
hyper-util = { git = "https://github.com/hyperium/hyper-util" }
http-body-util = "0.1.0-rc.3"
base64 = "0.21"
dashmap = "5.4"
ahash = { version = "0.8" }

View File

@@ -33,6 +33,7 @@ use base64::{engine::general_purpose, Engine};
use ece::EcKeyComponents;
use hyper::{body, server::conn::http1, service::service_fn, StatusCode};
use hyper_util::rt::TokioIo;
use jmap::{
api::{
http::{fetch_body, ToHttpResponse},
@@ -284,14 +285,16 @@ impl utils::listener::SessionManager for SessionManager {
let _ = http1::Builder::new()
.keep_alive(false)
.serve_connection(
session
.instance
.tls_acceptor
.as_ref()
.unwrap()
.accept(session.stream)
.await
.unwrap(),
TokioIo::new(
session
.instance
.tls_acceptor
.as_ref()
.unwrap()
.accept(session.stream)
.await
.unwrap(),
),
service_fn(|mut req: hyper::Request<body::Incoming>| {
let push = push.clone();