diff --git a/http/CHANGES.md b/http/CHANGES.md index a7ed20dc6..1590215e0 100644 --- a/http/CHANGES.md +++ b/http/CHANGES.md @@ -1,5 +1,7 @@ # unreleased 0.7.1 ## Change +- update `socket2` to `0.6.0` +- update `tokio` to `1.47.1` - update `h3` to `0.0.7` - update `h3-quinn` to `0.0.9` diff --git a/http/Cargo.toml b/http/Cargo.toml index a1c88d653..959cbd311 100644 --- a/http/Cargo.toml +++ b/http/Cargo.toml @@ -68,7 +68,7 @@ h3 = { version = "0.0.7", optional = true } h3-quinn = { version = "0.0.9", optional = true } # async runtime support. -tokio = { version = "1.30", features = ["rt", "time"], optional = true } +tokio = { version = "1.47.1", features = ["rt", "time"], optional = true } # util service support xitca-router = { version = "0.3.0", optional = true } @@ -77,7 +77,7 @@ xitca-router = { version = "0.3.0", optional = true } tokio-uring = { version = "0.5.0", features = ["bytes"], optional = true } [target.'cfg(not(target_family = "wasm"))'.dependencies] -socket2 = { version = "0.5.1", features = ["all"] } +socket2 = { version = "0.6.0", features = ["all"] } [dev-dependencies] criterion = "0.5" diff --git a/http/src/util/middleware/socket_config.rs b/http/src/util/middleware/socket_config.rs index ff024ca9d..55b587c11 100644 --- a/http/src/util/middleware/socket_config.rs +++ b/http/src/util/middleware/socket_config.rs @@ -149,7 +149,7 @@ impl SocketConfigService { fn apply_config<'s>(&self, stream: impl Into>) -> io::Result<()> { let stream_ref = stream.into(); - stream_ref.set_nodelay(self.config.nodelay)?; + stream_ref.set_tcp_nodelay(self.config.nodelay)?; if let Some(ka) = self.config.ka.as_ref() { stream_ref.set_tcp_keepalive(ka)?; diff --git a/server/CHANGES.md b/server/CHANGES.md index 8435b01b2..05a5c82e9 100644 --- a/server/CHANGES.md +++ b/server/CHANGES.md @@ -1,4 +1,7 @@ # unreleased +## Change +- update `socket2` to `0.6.0` +- update `tokio` to `1.47.1` # 0.5.0 ## Add diff --git a/server/Cargo.toml b/server/Cargo.toml index dcd468fa0..950f64894 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -20,19 +20,19 @@ xitca-io = { version = "0.4.0", features = ["runtime"] } xitca-service = { version = "0.3.0", features = ["alloc"] } xitca-unsafe-collection = "0.2.0" -tokio = { version = "1.30", features = ["sync", "time"] } +tokio = { version = "1.47.1", features = ["sync", "time"] } tracing = { version = "0.1.40", default-features = false } # io-uring support tokio-uring = { version = "0.5", optional = true } [target.'cfg(not(target_family = "wasm"))'.dependencies] -socket2 = { version = "0.5.1" } -tokio = { version = "1.30", features = ["rt-multi-thread", "signal"] } +socket2 = { version = "0.6.0" } +tokio = { version = "1.47.1", features = ["rt-multi-thread", "signal"] } [target.'cfg(target_family = "wasm")'.dependencies] -tokio = { version = "1.30", features = ["rt"] } +tokio = { version = "1.47.1", features = ["rt"] } [dev-dependencies] bytes = "1.4" -tokio = { version = "1.30", features = ["io-util", "macros"] } +tokio = { version = "1.47.1", features = ["io-util", "macros"] }