1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 16:02:59 +01:00

remove reserved state for h2 write if buffer is empty

This commit is contained in:
Nikolay Kim 2018-03-12 09:04:54 -07:00
parent 31e1aab9a4
commit b3cdb472d0

View File

@ -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)
}
}