From b3cdb472d0c63fef513cf2a61d03849adfd448c5 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 12 Mar 2018 09:04:54 -0700 Subject: [PATCH] remove reserved state for h2 write if buffer is empty --- src/server/h2writer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/h2writer.rs b/src/server/h2writer.rs index 7fccd4ecf..6a6437b0b 100644 --- a/src/server/h2writer.rs +++ b/src/server/h2writer.rs @@ -197,6 +197,7 @@ impl Writer for H2Writer { let cap = cmp::min(self.buffer.len(), CHUNK_SIZE); stream.reserve_capacity(cap); } else { + self.flags.remove(Flags::RESERVED); return Ok(Async::NotReady) } }