mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjusting default read timeout to 5 seconds, same as apache default
value
This commit is contained in:
parent
d2dd7d1694
commit
4c7eb645a1
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue