Merge pull request #536 from weaveworks/loadtester-timeout

loadtester: set write timeout
This commit is contained in:
Stefan Prodan
2020-03-30 12:01:51 +03:00
committed by GitHub
5 changed files with 6 additions and 6 deletions

View File

@@ -342,7 +342,7 @@ func ListenAndServe(port string, timeout time.Duration, logger *zap.SugaredLogge
Addr: ":" + port,
Handler: mux,
ReadTimeout: 5 * time.Second,
WriteTimeout: 1 * time.Minute,
WriteTimeout: timeout,
IdleTimeout: 15 * time.Second,
}