increase wrtie timeout to allow long exports

This commit is contained in:
Umputun
2018-12-24 00:19:12 -06:00
parent 7484649621
commit b8ed722b2e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ func (s *Rest) makeHTTPServer(port int, router http.Handler) *http.Server {
Addr: fmt.Sprintf(":%d", port),
Handler: router,
ReadHeaderTimeout: 5 * time.Second,
WriteTimeout: 5 * time.Second,
WriteTimeout: 120 * time.Second, // TODO: such a long timeout needed for blocking export (backup) request
IdleTimeout: 30 * time.Second,
}
}