mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 11:59:24 +08:00
adjusting default read timeout to 5 seconds, same as apache default
value
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user