From d165829022e1c2c5e8d081c4d950a2a12bc59f62 Mon Sep 17 00:00:00 2001 From: Juergen Kunz Date: Mon, 16 Mar 2026 13:44:56 +0000 Subject: [PATCH] fix(rustproxy-http): forward vectored write support in ShutdownOnDrop AsyncWrite wrapper --- changelog.md | 6 ++++++ rust/crates/rustproxy-http/src/shutdown_on_drop.rs | 12 ++++++++++++ ts/00_commitinfo_data.ts | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 07afe45..c765dcf 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-03-16 - 25.11.14 - fix(rustproxy-http) +forward vectored write support in ShutdownOnDrop AsyncWrite wrapper + +- Implements poll_write_vectored by delegating to the wrapped writer +- Exposes is_write_vectored so the wrapper preserves underlying AsyncWrite capabilities + ## 2026-03-16 - 25.11.13 - fix(rustproxy-http) remove hot-path debug logging from HTTP/1 connection pool hits diff --git a/rust/crates/rustproxy-http/src/shutdown_on_drop.rs b/rust/crates/rustproxy-http/src/shutdown_on_drop.rs index d878b27..1f02ba4 100644 --- a/rust/crates/rustproxy-http/src/shutdown_on_drop.rs +++ b/rust/crates/rustproxy-http/src/shutdown_on_drop.rs @@ -50,6 +50,18 @@ impl AsyncWrite for Shutdown Pin::new(self.get_mut().inner.as_mut().unwrap()).poll_write(cx, buf) } + fn poll_write_vectored( + self: Pin<&mut Self>, + cx: &mut Context<'_>, + bufs: &[io::IoSlice<'_>], + ) -> Poll> { + Pin::new(self.get_mut().inner.as_mut().unwrap()).poll_write_vectored(cx, bufs) + } + + fn is_write_vectored(&self) -> bool { + self.inner.as_ref().unwrap().is_write_vectored() + } + fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 8300245..f76ad0a 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartproxy', - version: '25.11.13', + version: '25.11.14', description: 'A powerful proxy package with unified route-based configuration for high traffic management. Features include SSL/TLS support, flexible routing patterns, WebSocket handling, advanced security options, and automatic ACME certificate management.' }