
Seemingly on slow connections if the response to /configz request was chunked the kubectl proxy was terminated before the response body was received and read, causing unexpected EOF errors. This patch changes the configz polling code so that the whole response body is read before closing the proxy connection.