Flush stream after sending message

Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
pull/12/head
Alexey Galakhov 8 years ago
parent 67aba05aeb
commit 6d10b40215
  1. 1
      src/protocol/frame/mod.rs

@ -94,6 +94,7 @@ impl<Stream> FrameSocket<Stream>
let len = self.stream.write(&self.out_buffer)?;
self.out_buffer.drain(0..len);
}
self.stream.flush()?;
Ok(())
}
}

Loading…
Cancel
Save