From d35bbbd54ed3de79d2a7d709013ff49d4a9413b8 Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Sun, 5 Oct 2025 22:40:42 -0700 Subject: Remove timeouts --- roseh.moe.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'roseh.moe.go') diff --git a/roseh.moe.go b/roseh.moe.go index 78c0625..77c78c1 100644 --- a/roseh.moe.go +++ b/roseh.moe.go @@ -478,11 +478,6 @@ func main() { http.HandleFunc("GET /", notFound) addr := fmt.Sprintf(":%d", *port) - server := &http.Server{ - Addr: addr, - ReadTimeout: 10 * time.Minute, - WriteTimeout: time.Minute, - } log.Printf("Listening on %q", addr) - log.Fatal(server.ListenAndServe()) + log.Fatal(http.ListenAndServe(addr, nil)) } -- cgit v1.3.1