summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-04-02 20:08:13 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-04-02 20:08:13 (GMT)
commitde11663ba8ad4253445b0f5829c19165b010bab0 (patch)
treecd67a9a20666a3bbfd37b93306838606a9dd1ed0 /src
parent9a7bb5ea47150a3f89e46e4d00b02a4a5c493a76 (diff)
increase read timeout since uploads can take long
Diffstat (limited to 'src')
-rw-r--r--src/rhimportd/ctrlWeb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rhimportd/ctrlWeb.go b/src/rhimportd/ctrlWeb.go
index 2b52ef0..9965662 100644
--- a/src/rhimportd/ctrlWeb.go
+++ b/src/rhimportd/ctrlWeb.go
@@ -54,6 +54,6 @@ func StartControlWeb(addr, staticDir string, uploadMaxAge time.Duration, conf *r
go webUploadCleaner(conf, uploadMaxAge)
rhl.Println("web-ctrl: listening on", addr)
- server := &http.Server{Addr: addr, ReadTimeout: 60 * time.Second, WriteTimeout: 60 * time.Second}
+ server := &http.Server{Addr: addr, ReadTimeout: 2 * time.Hour, WriteTimeout: 1 * time.Minute}
server.ListenAndServe()
}