diff --git a/weed/server/raft_server.go b/weed/server/raft_server.go index 2cc8252b8..68042da54 100644 --- a/weed/server/raft_server.go +++ b/weed/server/raft_server.go @@ -44,6 +44,7 @@ func NewRaftServer(r *mux.Router, peers []string, httpAddr string, dataDir strin var err error transporter := raft.NewHTTPTransporter("/cluster", time.Second) transporter.Transport.MaxIdleConnsPerHost = 1024 + transporter.Transport.IdleConnTimeout = time.Second glog.V(0).Infof("Starting RaftServer with %v", httpAddr) // Clear old cluster configurations if peers are changed