diff --git a/Cargo.lock b/Cargo.lock index b565a5614..62cd8d9bf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13602,7 +13602,7 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3" [[package]] name = "sidevm" -version = "0.2.0-alpha.4" +version = "0.2.0-alpha.5" dependencies = [ "derive_more", "futures", diff --git a/crates/sidevm/sidevm/Cargo.toml b/crates/sidevm/sidevm/Cargo.toml index f6a673755..38395effe 100644 --- a/crates/sidevm/sidevm/Cargo.toml +++ b/crates/sidevm/sidevm/Cargo.toml @@ -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" } diff --git a/crates/sidevm/sidevm/src/net.rs b/crates/sidevm/sidevm/src/net.rs index 94b272891..52854a846 100644 --- a/crates/sidevm/sidevm/src/net.rs +++ b/crates/sidevm/sidevm/src/net.rs @@ -310,7 +310,7 @@ mod impl_tokio { buf: &mut tokio::io::ReadBuf<'_>, ) -> Poll> { 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)