From 853944f785c2034bbf82a128b86d511e297cf221 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Mon, 21 Oct 2019 16:10:40 +0900 Subject: server: speed up session establishment The unittest on pkg/server finishes quicker. Signed-off-by: FUJITA Tomonori --- internal/pkg/config/util.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'internal') 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), -- cgit v1.2.3