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

value
This commit is contained in:
Chris Lu committed 2012-09-28 10:15:39 -07:00
1 parent d2dd7d1694
commit 4c7eb645a1
2 files changed
+2 -2

No files matched your search

+1 -1
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 {
+1 -1
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 {