Skip to content

Commit aded9f3

Browse files
committed
feat(h2): re-enable writev support
Signed-off-by: Eliza Weisman <[email protected]>
1 parent cfcbb6f commit aded9f3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ http = "0.2"
3030
http-body = { git = "https://github.com/hyperium/http-body" }
3131
httpdate = "0.3"
3232
httparse = "1.0"
33-
h2 = { git = "https://github.com/hyperium/h2", optional = true }
33+
h2 = { git = "https://github.com/hyperium/h2", optional = true, branch = "eliza/writev" }
3434
itoa = "0.4.1"
3535
tracing = { version = "0.1", default-features = false, features = ["log", "std"] }
3636
pin-project = "1.0"
@@ -248,4 +248,4 @@ required-features = ["full"]
248248
[[test]]
249249
name = "server"
250250
path = "tests/server.rs"
251-
required-features = ["full"]
251+
required-features = ["full"]

src/server/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ mod addr_stream {
297297
fn poll_write_vectored(
298298
self: Pin<&mut Self>,
299299
cx: &mut task::Context<'_>,
300-
bufs: &[io::IoVec<'_>],
300+
bufs: &[io::IoSlice<'_>],
301301
) -> Poll<io::Result<usize>> {
302302
self.project().inner.poll_write_vectored(cx, bufs)
303303
}

0 commit comments

Comments
 (0)