diff options
| author | 2026-03-08 02:02:37 +0800 | |
|---|---|---|
| committer | 2026-03-08 02:02:37 +0800 | |
| commit | 6c45198ea89e76a2d03b8d5ff17071cc5b4148ce (patch) | |
| tree | 09525015ba9fdcc6879dabd7eacfa3276d519a68 /protocol | |
| parent | cmd/receivepack9418: Init (diff) | |
| signature | No signature | |
protocol/v0v1/server: Add FlushIO
Diffstat (limited to 'protocol')
| -rw-r--r-- | protocol/v0v1/server/session.go | 9 |
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. |
