adjusting default read timeout to 5 seconds, same as apache default

value
This commit is contained in:
Chris Lu 2012-09-28 10:15:39 -07:00
parent d2dd7d1694
commit 4c7eb645a1
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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 {