Compare commits

..

No commits in common. "dcc11fca0922f1d8ae25899a5ca21a65364252bf" and "d68724a470192372858a42f5f0e3141378d6be9f" have entirely different histories.

View file

@ -20,7 +20,6 @@ import (
"net/http" "net/http"
"net/netip" "net/netip"
"os" "os"
"time"
"github.com/alecthomas/kingpin/v2" "github.com/alecthomas/kingpin/v2"
"github.com/go-kit/log" "github.com/go-kit/log"
@ -147,12 +146,7 @@ func main() {
http.Handle("/", landingPage) http.Handle("/", landingPage)
} }
srv := &http.Server{ srv := &http.Server{}
ReadHeaderTimeout: 15 * time.Second,
ReadTimeout: 15 * time.Second,
WriteTimeout: 10 * time.Second,
IdleTimeout: 30 * time.Second,
}
if err := web.ListenAndServe(srv, toolkitFlags, logger); err != nil { if err := web.ListenAndServe(srv, toolkitFlags, logger); err != nil {
level.Error(logger).Log("msg", "Error starting HTTP server", "err", err) level.Error(logger).Log("msg", "Error starting HTTP server", "err", err)
os.Exit(1) os.Exit(1)