From 1d103e3ed54d0e5cf17dbc489ba412ce96c88a20 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 17 Jan 2019 23:38:33 -0800 Subject: [PATCH] timeout http connections possible fix for https://github.com/chrislusf/seaweedfs/issues/825 --- weed/server/raft_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/raft_server.go b/weed/server/raft_server.go index 01ca41aac..2cc8252b8 100644 --- a/weed/server/raft_server.go +++ b/weed/server/raft_server.go @@ -42,7 +42,7 @@ func NewRaftServer(r *mux.Router, peers []string, httpAddr string, dataDir strin raft.RegisterCommand(&topology.MaxVolumeIdCommand{}) var err error - transporter := raft.NewHTTPTransporter("/cluster", 0) + transporter := raft.NewHTTPTransporter("/cluster", time.Second) transporter.Transport.MaxIdleConnsPerHost = 1024 glog.V(0).Infof("Starting RaftServer with %v", httpAddr)