diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-04-02 20:08:13 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-04-02 20:08:13 (GMT) |
commit | de11663ba8ad4253445b0f5829c19165b010bab0 (patch) | |
tree | cd67a9a20666a3bbfd37b93306838606a9dd1ed0 /src | |
parent | 9a7bb5ea47150a3f89e46e4d00b02a4a5c493a76 (diff) |
increase read timeout since uploads can take long
Diffstat (limited to 'src')
-rw-r--r-- | src/rhimportd/ctrlWeb.go | 2 |
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() } |