|
@ -144,7 +144,7 @@ func runMaster(cmd *Command, args []string) bool { |
|
|
srv := &http.Server{ |
|
|
srv := &http.Server{ |
|
|
Addr:":"+strconv.Itoa(*mport), |
|
|
Addr:":"+strconv.Itoa(*mport), |
|
|
Handler: http.DefaultServeMux, |
|
|
Handler: http.DefaultServeMux, |
|
|
ReadTimeout: 30*time.Second, |
|
|
|
|
|
|
|
|
ReadTimeout: 5*time.Second, |
|
|
} |
|
|
} |
|
|
e := srv.ListenAndServe() |
|
|
e := srv.ListenAndServe() |
|
|
if e != nil { |
|
|
if e != nil { |
|
|