From 608112894b40beed77b516d1c0e2aa36a988aadd Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Wed, 9 Feb 2022 17:05:37 -0800 Subject: [PATCH] Fix write to check poll_ready before sending data --- h3/src/stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h3/src/stream.rs b/h3/src/stream.rs index f00a11a1..5c61e75f 100644 --- a/h3/src/stream.rs +++ b/h3/src/stream.rs @@ -25,8 +25,8 @@ where D: Into>, B: Buf, { - stream.send_data(data)?; future::poll_fn(|cx| stream.poll_ready(cx)).await?; + stream.send_data(data)?; Ok(()) }