Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions crates/wasi-io/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ impl streams::HostOutputStream for ResourceTable {
stream: Resource<DynOutputStream>,
bytes: Vec<u8>,
) -> StreamResult<()> {
if bytes.len() > 4096 {
if bytes.len() > 65536 {
return Err(StreamError::trap(
"Buffer too large for blocking-write-and-flush (expected at most 4096)",
"Buffer too large for blocking-write-and-flush (expected at most 65536)",
));
}

Expand All @@ -157,9 +157,9 @@ impl streams::HostOutputStream for ResourceTable {
stream: Resource<DynOutputStream>,
len: u64,
) -> StreamResult<()> {
if len > 4096 {
if len > 65536 {
return Err(StreamError::trap(
"Buffer too large for blocking-write-zeroes-and-flush (expected at most 4096)",
"Buffer too large for blocking-write-zeroes-and-flush (expected at most 65536)",
));
}

Expand Down