summaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@gmail.com>2019-10-21 16:10:40 +0900
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-10-21 16:10:40 +0900
commit853944f785c2034bbf82a128b86d511e297cf221 (patch)
tree15314584a4ea6a7aa19360605bac1fe3ddf7545f /internal
parent19e99002f574a06b00738e3529bae2a4869ccce9 (diff)
server: speed up session establishment
The unittest on pkg/server finishes quicker. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Diffstat (limited to 'internal')
-rw-r--r--internal/pkg/config/util.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/internal/pkg/config/util.go b/internal/pkg/config/util.go
index a1cd2dc7..228c9e3d 100644
--- a/internal/pkg/config/util.go
+++ b/internal/pkg/config/util.go
@@ -505,9 +505,10 @@ func NewPeerFromConfigStruct(pconf *Neighbor) *api.Peer {
},
Timers: &api.Timers{
Config: &api.TimersConfig{
- ConnectRetry: uint64(timer.Config.ConnectRetry),
- HoldTime: uint64(timer.Config.HoldTime),
- KeepaliveInterval: uint64(timer.Config.KeepaliveInterval),
+ ConnectRetry: uint64(timer.Config.ConnectRetry),
+ HoldTime: uint64(timer.Config.HoldTime),
+ KeepaliveInterval: uint64(timer.Config.KeepaliveInterval),
+ IdleHoldTimeAfterReset: uint64(timer.Config.IdleHoldTimeAfterReset),
},
State: &api.TimersState{
KeepaliveInterval: uint64(timer.State.KeepaliveInterval),
@@ -572,9 +573,10 @@ func NewPeerGroupFromConfigStruct(pconf *PeerGroup) *api.PeerGroup {
},
Timers: &api.Timers{
Config: &api.TimersConfig{
- ConnectRetry: uint64(timer.Config.ConnectRetry),
- HoldTime: uint64(timer.Config.HoldTime),
- KeepaliveInterval: uint64(timer.Config.KeepaliveInterval),
+ ConnectRetry: uint64(timer.Config.ConnectRetry),
+ HoldTime: uint64(timer.Config.HoldTime),
+ KeepaliveInterval: uint64(timer.Config.KeepaliveInterval),
+ IdleHoldTimeAfterReset: uint64(timer.Config.IdleHoldTimeAfterReset),
},
State: &api.TimersState{
KeepaliveInterval: uint64(timer.State.KeepaliveInterval),