diff options
author | Christian Pointner <equinox@helsinki.at> | 2017-03-24 15:19:49 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2017-03-24 15:19:49 (GMT) |
commit | 12b2b967c40156a09d64442229f8b98120e6ade9 (patch) | |
tree | 6c5b7eed08eb17b684fefb471887f5ed4900fbb2 /src/rhimportd/routeWeb.go | |
parent | 9bf4db94df62dfd9964636d5ec456a5c42db24e6 (diff) |
increase read/write timeouts for web connections
Diffstat (limited to 'src/rhimportd/routeWeb.go')
-rw-r--r-- | src/rhimportd/routeWeb.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rhimportd/routeWeb.go b/src/rhimportd/routeWeb.go index 28bb082..687de0c 100644 --- a/src/rhimportd/routeWeb.go +++ b/src/rhimportd/routeWeb.go @@ -54,6 +54,6 @@ func StartWebRouter(addr, staticDir string, conf *rhimport.Config, db *rddb.DB, http.Handle("/public/upload/", http.StripPrefix("/public/upload/", webHandler{conf, db, sessions, false, webUploadHandler})) rhl.Println("web-router: listening on", addr) - server := &http.Server{Addr: addr, ReadTimeout: 2 * time.Hour, WriteTimeout: 2 * time.Hour} + server := &http.Server{Addr: addr, ReadTimeout: 12 * time.Hour, WriteTimeout: 12 * time.Hour} server.ListenAndServe() } |