github.com/avenga/couper@v1.12.2/config/runtime/http.go (about) 1 package runtime 2 3 import ( 4 "time" 5 ) 6 7 type HTTPTimings struct { 8 IdleTimeout time.Duration `env:"timing_idle_timeout"` 9 ReadHeaderTimeout time.Duration `env:"timing_read_header_timeout"` 10 // ShutdownDelay determines the time between marking the http server 11 // as unhealthy and calling the final shutdown method which denies accepting new requests. 12 ShutdownDelay time.Duration `env:"timing_shutdown_delay"` 13 // ShutdownTimeout is the context duration for shutting down the http server. Running requests 14 // gets answered and those which exceeded this timeout getting lost. In combination with 15 // ShutdownDelay the load-balancer should have picked another instance already. 16 ShutdownTimeout time.Duration `env:"timing_shutdown_timeout"` 17 } 18 19 var DefaultTimings = HTTPTimings{ 20 IdleTimeout: time.Second * 60, 21 ReadHeaderTimeout: time.Second * 10, 22 }