mirror of
https://github.com/openfaas/faas.git
synced 2025-06-21 12:36:29 +00:00
Introduce welcome message and change default timeout
The welcome message shows the difference between Pro and CE. The timeout of 8 seconds was never going to be useful as a default, so changing to 60 seconds. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
This commit is contained in:
@ -59,7 +59,7 @@ func (ReadConfig) Read(hasEnv HasEnv) (*GatewayConfig, error) {
|
||||
PrometheusPort: 9090,
|
||||
}
|
||||
|
||||
defaultDuration := time.Second * 8
|
||||
defaultDuration := time.Second * 60
|
||||
|
||||
cfg.ReadTimeout = parseIntOrDurationValue(hasEnv.Getenv("read_timeout"), defaultDuration)
|
||||
cfg.WriteTimeout = parseIntOrDurationValue(hasEnv.Getenv("write_timeout"), defaultDuration)
|
||||
|
Reference in New Issue
Block a user