From: Ian Jackson Date: Mon, 17 May 2021 15:56:35 +0000 (+0100) Subject: progress: Flush so the progress info is actually timely X-Git-Tag: otter-0.6.0~192 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=689758ddcbaed00fe7eb3ab91b3924d2c1003114;p=otter.git progress: Flush so the progress info is actually timely Signed-off-by: Ian Jackson --- diff --git a/src/packetframe.rs b/src/packetframe.rs index 919df430..654f7d4b 100644 --- a/src/packetframe.rs +++ b/src/packetframe.rs @@ -460,6 +460,7 @@ impl<'c,W:Write> ResponseWriter<'c,W> { pub fn progress(&mut self, pi: ProgressInfo<'_>) { let resp = crate::commands::MgmtResponse::Progress(pi.into_owned()); rmp_serde::encode::write_named(&mut self.f, &resp)?; + self.f.flush()?; } }