diff --git a/cmd/dendrite-monolith-server/main.go b/cmd/dendrite-monolith-server/main.go index 4ef75fb72..9e6782762 100644 --- a/cmd/dendrite-monolith-server/main.go +++ b/cmd/dendrite-monolith-server/main.go @@ -17,7 +17,6 @@ package main import ( "flag" "net/http" - "time" "github.com/matrix-org/dendrite/appservice" "github.com/matrix-org/dendrite/clientapi" @@ -92,14 +91,7 @@ func main() { // Expose the matrix APIs directly rather than putting them under a /api path. go func() { logrus.Info("Listening on ", *httpBindAddr) - serv := http.Server{ - Addr: *httpBindAddr, - ReadTimeout: time.Second * 300, - ReadHeaderTimeout: time.Second * 300, - WriteTimeout: time.Second * 300, - IdleTimeout: time.Second * 300, - } - logrus.Fatal(serv.ListenAndServe()) + logrus.Fatal(http.ListenAndServe(*httpBindAddr, nil)) }() // Handle HTTPS if certificate and key are provided go func() {