aboutsummaryrefslogtreecommitdiff
path: root/protocol/v0v1/server
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-08 02:02:37 +0800
committerGravatar Runxi Yu2026-03-08 02:02:37 +0800
commit6c45198ea89e76a2d03b8d5ff17071cc5b4148ce (patch)
tree09525015ba9fdcc6879dabd7eacfa3276d519a68 /protocol/v0v1/server
parentcmd/receivepack9418: Init (diff)
signatureNo signature
protocol/v0v1/server: Add FlushIO
Diffstat (limited to 'protocol/v0v1/server')
-rw-r--r--protocol/v0v1/server/session.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/protocol/v0v1/server/session.go b/protocol/v0v1/server/session.go
index 75884806..7e107f53 100644
--- a/protocol/v0v1/server/session.go
+++ b/protocol/v0v1/server/session.go
@@ -87,6 +87,15 @@ func (session *Session) WriteFlush() error {
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.