Move the check for IsExpectedWSCloseError() inside CopyToWebsocket() and only do the check on the websocket side.
Previously we were treating EOF on the non-websocket side of the conversation as no-error, meaning that operations like Kubernetes Describe would retry endlessly when finished.
Fixes #3684
Move the check for
IsExpectedWSCloseError()
insideCopyToWebsocket()
and only do the check on the websocket side.Previously we were treating EOF on the non-websocket side of the conversation as no-error, meaning that operations like Kubernetes Describe would retry endlessly when finished.