From 03ac03d8486e65e5ba836b66867724e834c30ec0 Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Fri, 27 Apr 2018 06:15:25 +0200 Subject: [PATCH] Don't throw an exception on MuxedStream.Flush (#143) --- src/KubernetesClient/MuxedStream.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/KubernetesClient/MuxedStream.cs b/src/KubernetesClient/MuxedStream.cs index 27411c0..b15da27 100644 --- a/src/KubernetesClient/MuxedStream.cs +++ b/src/KubernetesClient/MuxedStream.cs @@ -85,7 +85,8 @@ namespace k8s /// public override void Flush() { - throw new NotSupportedException(); + // Whenever we call muxer.Write, a message is immediately sent over the wire, so we don't need/support flushing. + // Implement flushing as a no-op operation as opposed to throwing a NotSupportedException. } ///