Browse Source

reusing http connections in raft server

pull/2/head
Chris Lu 11 years ago
parent
commit
1c044280d6
  1. 2
      go/weed/weed_server/raft_server.go

2
go/weed/weed_server/raft_server.go

@ -44,6 +44,8 @@ func NewRaftServer(r *mux.Router, version string, peers []string, httpAddr strin
var err error
transporter := raft.NewHTTPTransporter("/cluster")
transporter.Transport.MaxIdleConnsPerHost = 1024
s.raftServer, err = raft.NewServer(s.httpAddr, s.dataDir, transporter, nil, topo, "")
if err != nil {
glog.V(0).Infoln(err)

Loading…
Cancel
Save