We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cddc783 commit c5ab64bCopy full SHA for c5ab64b
src/io_uring.rs
@@ -87,7 +87,8 @@ async fn copy<A: Endpoint<A>, B: Endpoint<B>>(
87
// returns an owned slice of our `Vec<u8>`, which we later turn back
88
// into the full `Vec<u8>`
89
debug!("{}: before write", dbg_name);
90
- let (res, buf_write) = to.write(buf_read.slice(..n)).submit().await;
+ let retval = to.write(buf_read.slice(..n)).submit();
91
+ let (res, buf_write) = timeout(READ_TIMEOUT, retval).await?;
92
let n = res?;
93
debug!("{}: after write, {} bytes", dbg_name, n);
94
// Increment byte counters for statistics
0 commit comments