mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
remove reserved state for h2 write if buffer is empty
This commit is contained in:
parent
31e1aab9a4
commit
b3cdb472d0
@ -197,6 +197,7 @@ impl Writer for H2Writer {
|
|||||||
let cap = cmp::min(self.buffer.len(), CHUNK_SIZE);
|
let cap = cmp::min(self.buffer.len(), CHUNK_SIZE);
|
||||||
stream.reserve_capacity(cap);
|
stream.reserve_capacity(cap);
|
||||||
} else {
|
} else {
|
||||||
|
self.flags.remove(Flags::RESERVED);
|
||||||
return Ok(Async::NotReady)
|
return Ok(Async::NotReady)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user