added min-rpc-ping-interval under app to the server configuration
This commit is contained in:
@@ -98,15 +98,16 @@ type RPCEndpointConfig struct { // rpc client-side configuration
|
||||
}
|
||||
|
||||
type ServerAppConfig struct {
|
||||
LogMask []string `yaml:"log-mask"`
|
||||
LogFile string `yaml:"log-file"`
|
||||
LogMaxSize int64 `yaml:"log-max-size"`
|
||||
LogRotate int `yaml:"log-rotate"`
|
||||
MaxPeers int `yaml:"max-peer-conns"` // maximum number of connections from peers
|
||||
MaxRpcConns int `yaml:"max-rpc-conns"` // maximum number of rpc connections
|
||||
PtyUser string `yaml:"pty-user"`
|
||||
PtyShell string `yaml:"pty-shell"`
|
||||
XtermHtmlFile string `yaml:"xterm-html-file"`
|
||||
LogMask []string `yaml:"log-mask"`
|
||||
LogFile string `yaml:"log-file"`
|
||||
LogMaxSize int64 `yaml:"log-max-size"`
|
||||
LogRotate int `yaml:"log-rotate"`
|
||||
MaxPeers int `yaml:"max-peer-conns"` // maximum number of connections from peers
|
||||
MaxRpcConns int `yaml:"max-rpc-conns"` // maximum number of rpc connections
|
||||
MinRpcPingIntvl time.Duration `yaml:"min-rpc-ping-interval"`
|
||||
PtyUser string `yaml:"pty-user"`
|
||||
PtyShell string `yaml:"pty-shell"`
|
||||
XtermHtmlFile string `yaml:"xterm-html-file"`
|
||||
}
|
||||
|
||||
type ClientAppConfig struct {
|
||||
|
||||
@@ -149,6 +149,7 @@ func server_main(ctl_addrs []string, rpc_addrs []string, rpx_addrs[] string, pxy
|
||||
|
||||
config.CtlPrefix = cfg.CTL.Service.Prefix
|
||||
config.RpcMaxConns = cfg.APP.MaxRpcConns
|
||||
config.RpcMinPingIntvl = cfg.APP.MinRpcPingIntvl
|
||||
config.MaxPeers = cfg.APP.MaxPeers
|
||||
|
||||
pty_user = cfg.APP.PtyUser
|
||||
|
||||
Reference in New Issue
Block a user