Skip to content

Commit

Permalink
feature: add nonzero copy option (#3519)
Browse files Browse the repository at this point in the history
Adding an option to disable zero-copy for sending file slices to the socket.

This is needed in the case where sending to a TLS socket where a zero copy doesn't work.
  • Loading branch information
sehz committed Sep 6, 2023
1 parent ef51821 commit 990892b
Show file tree
Hide file tree
Showing 3 changed files with 259 additions and 97 deletions.
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions crates/fluvio-socket/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ async-trait = { workspace = true }
pin-project = { workspace = true }
thiserror = { workspace = true }
semver = { workspace = true }
nix = { workspace = true, features = ["uio"]}

# Fluvio dependencies
fluvio-future = { workspace = true, features = ["net", "task", "retry"] }
Expand All @@ -41,16 +42,19 @@ fluvio-protocol = { workspace = true, features = [
] }

[dev-dependencies]
portpicker = { workspace = true }
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
async-net = { workspace = true }

fluvio-future = { workspace = true, features = [
"fixture",
"fs",
"zero_copy",
"native2_tls",
] }
portpicker = { workspace = true }
fluvio-types = { workspace = true, features = ["events"] }


[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
async-net = { workspace = true }

[build-dependencies]
built = "0.6.0"
Loading

0 comments on commit 990892b

Please sign in to comment.