Skip to content

Commit

Permalink
Remove the 512 bytes chunk limit for net poll
Browse files Browse the repository at this point in the history
  • Loading branch information
kvinwang committed Dec 11, 2023
1 parent bba38d4 commit 9b75bff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion crates/sidevm/sidevm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ license = "Apache-2.0"
homepage = "https://github.com/Phala-Network/phala-blockchain"
edition = "2021"
name = "sidevm"
version = "0.2.0-alpha.4"
version = "0.2.0-alpha.5"

[dependencies]
sidevm-env = { version = "0.2.0-alpha.4", path = "../env" }
Expand Down
2 changes: 1 addition & 1 deletion crates/sidevm/sidevm/src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ mod impl_tokio {
buf: &mut tokio::io::ReadBuf<'_>,
) -> Poll<std::io::Result<()>> {
let result = {
let size = buf.remaining().min(512);
let size = buf.remaining();
let buf = buf.initialize_unfilled_to(size);
let waker_id = tasks::intern_waker(cx.waker().clone());
ocall::poll_read(waker_id, self.res_id.0, buf)
Expand Down

0 comments on commit 9b75bff

Please sign in to comment.