aboutsummaryrefslogtreecommitdiff
path: root/network/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'network/protocol')
-rw-r--r--network/protocol/v0v1/server/receivepack/session.go4
-rw-r--r--network/protocol/v0v1/server/session.go6
2 files changed, 10 insertions, 0 deletions
diff --git a/network/protocol/v0v1/server/receivepack/session.go b/network/protocol/v0v1/server/receivepack/session.go
index b4902df4..31cf31f6 100644
--- a/network/protocol/v0v1/server/receivepack/session.go
+++ b/network/protocol/v0v1/server/receivepack/session.go
@@ -168,6 +168,8 @@ func (session *Session) WriteProgress(p []byte) error {
// ProgressWriter returns one chunking writer for sideband progress output.
//
// When side-band-64k was not negotiated, writes are discarded.
+//
+// Labels: Life-Parent, Close-No.
func (session *Session) ProgressWriter() iowrap.WriteFlusher {
return session.base.ProgressWriter()
}
@@ -180,6 +182,8 @@ func (session *Session) WriteError(p []byte) error {
// ErrorWriter returns one chunking writer for sideband error output.
//
// When side-band-64k was not negotiated, writes are discarded.
+//
+// Labels: Life-Parent, Close-No.
func (session *Session) ErrorWriter() iowrap.WriteFlusher {
return session.base.ErrorWriter()
}
diff --git a/network/protocol/v0v1/server/session.go b/network/protocol/v0v1/server/session.go
index 23818014..7fc89157 100644
--- a/network/protocol/v0v1/server/session.go
+++ b/network/protocol/v0v1/server/session.go
@@ -100,6 +100,8 @@ func (session *Session) Flush() error {
// ProgressWriter returns one chunking writer for sideband progress output.
//
// When side-band-64k was not negotiated, writes are discarded.
+//
+// Labels: Life-Parent, Close-No.
func (session *Session) ProgressWriter() iowrap.WriteFlusher {
if !session.useSideBand {
return iowrap.NopFlush(io.Discard)
@@ -111,6 +113,8 @@ func (session *Session) ProgressWriter() iowrap.WriteFlusher {
// ErrorWriter returns one chunking writer for sideband error output.
//
// When side-band-64k was not negotiated, writes are discarded.
+//
+// Labels: Life-Parent, Close-No.
func (session *Session) ErrorWriter() iowrap.WriteFlusher {
if !session.useSideBand {
return iowrap.NopFlush(io.Discard)
@@ -123,6 +127,8 @@ func (session *Session) ErrorWriter() iowrap.WriteFlusher {
//
// When side-band-64k is enabled, writes are chunked into band-1 sideband
// frames. Otherwise writes are chunked into direct pkt-line data frames.
+//
+// Labels: Life-Parent, Close-No.
func (session *Session) PrimaryDataWriter() iowrap.WriteFlusher {
if session.useSideBand {
return sideband64k.NewChunkWriter(session.sideband, sideband64k.BandData)