Skip to content

Commit 03ac03d

Browse files
qmfrederikbrendandburns
authored andcommitted
Don't throw an exception on MuxedStream.Flush (#143)
1 parent 1c07966 commit 03ac03d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/KubernetesClient/MuxedStream.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ public override int Read(byte[] buffer, int offset, int count)
8585
/// <inheritdoc/>
8686
public override void Flush()
8787
{
88-
throw new NotSupportedException();
88+
// Whenever we call muxer.Write, a message is immediately sent over the wire, so we don't need/support flushing.
89+
// Implement flushing as a no-op operation as opposed to throwing a NotSupportedException.
8990
}
9091

9192
/// <inheritdoc/>

0 commit comments

Comments
 (0)