mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
timeout http connections
possible fix for https://github.com/chrislusf/seaweedfs/issues/825
This commit is contained in:
parent
b881e11a16
commit
1d103e3ed5
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue