Skip to content

Commit

Permalink
feat(h2): re-enable writev support
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Nov 20, 2020
1 parent cfcbb6f commit aded9f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ http = "0.2"
http-body = { git = "https://github.com/hyperium/http-body" }
httpdate = "0.3"
httparse = "1.0"
h2 = { git = "https://github.com/hyperium/h2", optional = true }
h2 = { git = "https://github.com/hyperium/h2", optional = true, branch = "eliza/writev" }
itoa = "0.4.1"
tracing = { version = "0.1", default-features = false, features = ["log", "std"] }
pin-project = "1.0"
Expand Down Expand Up @@ -248,4 +248,4 @@ required-features = ["full"]
[[test]]
name = "server"
path = "tests/server.rs"
required-features = ["full"]
required-features = ["full"]
2 changes: 1 addition & 1 deletion src/server/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ mod addr_stream {
fn poll_write_vectored(
self: Pin<&mut Self>,
cx: &mut task::Context<'_>,
bufs: &[io::IoVec<'_>],
bufs: &[io::IoSlice<'_>],
) -> Poll<io::Result<usize>> {
self.project().inner.poll_write_vectored(cx, bufs)
}
Expand Down

0 comments on commit aded9f3

Please sign in to comment.