summaryrefslogtreecommitdiffstats
path: root/roseh.moe.go
diff options
context:
space:
mode:
Diffstat (limited to 'roseh.moe.go')
-rw-r--r--roseh.moe.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/roseh.moe.go b/roseh.moe.go
index e38677d..a7279cd 100644
--- a/roseh.moe.go
+++ b/roseh.moe.go
@@ -341,6 +341,11 @@ 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(http.ListenAndServe(addr, nil))
+ log.Fatal(server.ListenAndServe())
}