mirror of
https://github.com/actix/actix-web.git
synced 2025-02-01 03:42:21 +00:00
remove reserved state for h2 write if buffer is empty
This commit is contained in:
parent
31e1aab9a4
commit
b3cdb472d0
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue