From 42f5aec6a544941e5c84d8b357fa1ea7650c0e20 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Fri, 7 Sep 2018 11:24:18 +0200 Subject: [PATCH] feat(container-console): increase hijacked tcp connection reader size (#2259) --- api/http/handler/websocket/websocket_exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/http/handler/websocket/websocket_exec.go b/api/http/handler/websocket/websocket_exec.go index 80c62b9d9..58d734072 100644 --- a/api/http/handler/websocket/websocket_exec.go +++ b/api/http/handler/websocket/websocket_exec.go @@ -252,7 +252,7 @@ func streamFromWebsocketConnToTCPConn(websocketConn *websocket.Conn, tcpConn net func streamFromTCPConnToWebsocketConn(websocketConn *websocket.Conn, br *bufio.Reader, errorChan chan error) { for { - out := make([]byte, 1024) + out := make([]byte, 2048) _, err := br.Read(out) if err != nil { errorChan <- err