Get large body writes working

This commit is contained in:
Carl Lerche
2017-08-12 11:02:50 -07:00
parent 570962353b
commit 150c3160be
5 changed files with 30 additions and 18 deletions

View File

@@ -196,7 +196,7 @@ impl<T, B> Sink for FramedWrite<T, B>
while !self.is_empty() {
match self.next {
Some(Next::Data(ref mut frame)) => {
let mut buf = self.buf.by_ref().chain(frame.payload_mut());
let mut buf = Buf::by_ref(&mut self.buf).chain(frame.payload_mut());
try_ready!(self.inner.write_buf(&mut buf));
}
_ => {