File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ import (
2323)
2424
2525const (
26- // We limit the timeout more in proxies .
27- maxTimeout = 24 * time .Hour
28- maxAge = 2 * time .Hour
26+ // Greater than in orchestrator proxy .
27+ idleTimeout = 640 * time .Second
28+ maxAge = 2 * time .Hour
2929
3030 defaultPort = 49983
3131)
@@ -155,11 +155,11 @@ func main() {
155155 middleware .Wrap (handler ),
156156 ),
157157 ),
158- Addr : fmt .Sprintf ("0.0.0.0:%d" , port ),
159- ReadHeaderTimeout : 5 * time . Second ,
160- ReadTimeout : maxTimeout ,
161- WriteTimeout : maxTimeout ,
162- IdleTimeout : maxTimeout ,
158+ Addr : fmt .Sprintf ("0.0.0.0:%d" , port ),
159+ // We remove the timeouts as the connection is terminated by closing of the sandbox and keepalive close.
160+ ReadTimeout : 0 ,
161+ WriteTimeout : 0 ,
162+ IdleTimeout : idleTimeout ,
163163 }
164164
165165 if startCmdFlag != "" {
You can’t perform that action at this time.
0 commit comments