diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-04-02 20:56:59 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-04-02 20:56:59 (GMT) |
commit | 5bc203b687760e584fa74deba133eb6fea8cb408 (patch) | |
tree | d50f464b0d71018720b38a75e2bfeffc90181eee /src/rhimportd | |
parent | de11663ba8ad4253445b0f5829c19165b010bab0 (diff) |
also increase write timeout since this is actually a deadline since the last read
Diffstat (limited to 'src/rhimportd')
-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 9965662..ae839a7 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: 2 * time.Hour, WriteTimeout: 1 * time.Minute} + server := &http.Server{Addr: addr, ReadTimeout: 2 * time.Hour, WriteTimeout: 2 * time.Hour} server.ListenAndServe() } |