mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-05 20:52:50 +08:00
add a timeout
This commit is contained in:
parent
09471b46f9
commit
834f414af9
@ -45,6 +45,7 @@ func NewRaftServer(r *mux.Router, peers []string, httpAddr string, dataDir strin
|
||||
transporter := raft.NewHTTPTransporter("/cluster", time.Second)
|
||||
transporter.Transport.MaxIdleConnsPerHost = 1024
|
||||
transporter.Transport.IdleConnTimeout = time.Second
|
||||
transporter.Transport.ResponseHeaderTimeout = time.Second
|
||||
glog.V(0).Infof("Starting RaftServer with %v", httpAddr)
|
||||
|
||||
// Clear old cluster configurations if peers are changed
|
||||
|
Loading…
Reference in New Issue
Block a user