Browse Source

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

value
pull/2/head
Chris Lu 12 years ago
parent
commit
4c7eb645a1
  1. 2
      weed-fs/src/cmd/weed/master.go
  2. 2
      weed-fs/src/cmd/weed/volume.go

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

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

Loading…
Cancel
Save