ref: 6c45198ea89e76a2d03b8d5ff17071cc5b4148ce
parent: 33fda1b8e4da0ad9d4208a8b8249c8d7b305f4ae
author: Runxi Yu <me@runxiyu.org>
date: Sat Mar 7 21:02:37 EST 2026
protocol/v0v1/server: Add FlushIO
--- a/protocol/v0v1/server/session.go
+++ b/protocol/v0v1/server/session.go
@@ -87,6 +87,15 @@
return session.enc.WriteFlush()
}
+// FlushIO flushes buffered transport output without emitting pkt-line frames.
+func (session *Session) FlushIO() error {+ if session.useSideBand {+ return session.sideband.FlushIO()
+ }
+
+ return session.enc.FlushIO()
+}
+
// ProgressWriter returns one chunking writer for sideband progress output.
//
// When side-band-64k was not negotiated, writes are discarded.
--
⑨