From 4c7eb645a17e69640aeb1e423b1298a93203c26c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 28 Sep 2012 10:15:39 -0700 Subject: [PATCH] adjusting default read timeout to 5 seconds, same as apache default value --- weed-fs/src/cmd/weed/master.go | 2 +- weed-fs/src/cmd/weed/volume.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed-fs/src/cmd/weed/master.go b/weed-fs/src/cmd/weed/master.go index 7e0e0ec87..b33115080 100644 --- a/weed-fs/src/cmd/weed/master.go +++ b/weed-fs/src/cmd/weed/master.go @@ -144,7 +144,7 @@ func runMaster(cmd *Command, args []string) bool { srv := &http.Server{ Addr:":"+strconv.Itoa(*mport), Handler: http.DefaultServeMux, - ReadTimeout: 30*time.Second, + ReadTimeout: 5*time.Second, } e := srv.ListenAndServe() if e != nil { diff --git a/weed-fs/src/cmd/weed/volume.go b/weed-fs/src/cmd/weed/volume.go index 4df873bec..78654e4ef 100644 --- a/weed-fs/src/cmd/weed/volume.go +++ b/weed-fs/src/cmd/weed/volume.go @@ -276,7 +276,7 @@ func runVolume(cmd *Command, args []string) bool { srv := &http.Server{ Addr:":"+strconv.Itoa(*vport), Handler: http.DefaultServeMux, - ReadTimeout: 30*time.Second, + ReadTimeout: 5*time.Second, } e := srv.ListenAndServe() if e != nil {