Browse Source

Increase http server timeout values

Frédéric Guillot 5 years ago
parent
commit
cc281f3533
1 changed files with 3 additions and 3 deletions
  1. 3 3
      service/httpd/httpd.go

+ 3 - 3
service/httpd/httpd.go

@@ -35,9 +35,9 @@ func Serve(store *storage.Storage, pool *worker.Pool, feedHandler *feed.Handler)
 	certCache := config.Opts.CertCache()
 	listenAddr := config.Opts.ListenAddr()
 	server := &http.Server{
-		ReadTimeout:  30 * time.Second,
-		WriteTimeout: 30 * time.Second,
-		IdleTimeout:  60 * time.Second,
+		ReadTimeout:  300 * time.Second,
+		WriteTimeout: 300 * time.Second,
+		IdleTimeout:  300 * time.Second,
 		Handler:      setupHandler(store, feedHandler, pool),
 	}