Commit 69c72280 authored by jhadvig's avatar jhadvig

Flush data periodically instead of their buffering

parent de7d625d
...@@ -25,6 +25,7 @@ import ( ...@@ -25,6 +25,7 @@ import (
"net/url" "net/url"
"path" "path"
"strings" "strings"
"time"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api" "github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/httplog" "github.com/GoogleCloudPlatform/kubernetes/pkg/httplog"
...@@ -137,6 +138,7 @@ func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { ...@@ -137,6 +138,7 @@ func (r *ProxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
proxyHost: req.URL.Host, proxyHost: req.URL.Host,
proxyPathPrepend: path.Join(r.prefix, resourceName, id), proxyPathPrepend: path.Join(r.prefix, resourceName, id),
} }
proxy.FlushInterval = 200 * time.Millisecond
proxy.ServeHTTP(w, newReq) proxy.ServeHTTP(w, newReq)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment