From 90382d407d740ce1f6c285a4053a19e97282ebf0 Mon Sep 17 00:00:00 2001 From: qingsenLi Date: Mon, 18 Feb 2019 13:20:58 +0800 Subject: [PATCH] delete unused code in proxy_server.go --- pkg/kubectl/proxy/proxy_server.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/kubectl/proxy/proxy_server.go b/pkg/kubectl/proxy/proxy_server.go index 85fe8fc8fd8..770bb7393ab 100644 --- a/pkg/kubectl/proxy/proxy_server.go +++ b/pkg/kubectl/proxy/proxy_server.go @@ -45,16 +45,6 @@ const ( DefaultMethodRejectRE = "^$" ) -var ( - // ReverseProxyFlushInterval is the frequency to flush the reverse proxy. - // Only matters for long poll connections like the one used to watch. With an - // interval of 0 the reverse proxy will buffer content sent on any connection - // with transfer-encoding=chunked. - // TODO: Flush after each chunk so the client doesn't suffer a 100ms latency per - // watch event. - ReverseProxyFlushInterval = 100 * time.Millisecond -) - // FilterServer rejects requests which don't match one of the specified regular expressions type FilterServer struct { // Only paths that match this regexp will be accepted