Properly CloseWrite() the client socket once done with stdin when using TLS connection (this used to rely on an erroneous type assertion). Fixes #8658. Fixes #8642. Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com> Signed-off-by: Michael Crosby <crosby.michael@gmail.com> Upstream-commit: e98e56bb1edc3835bc835c9e034780845c64d797 Component: engine