summaryrefslogtreecommitdiffhomepage
path: root/server/fsm.go
diff options
context:
space:
mode:
authorWataru Ishida <ishida.wataru@lab.ntt.co.jp>2017-06-02 15:04:32 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-06 13:11:20 +0900
commitda94f98e394c5f6a78871f3d51387777ac3c9235 (patch)
tree29e2c42d5882966727f4d10f973e1008ad925770 /server/fsm.go
parentd47c818cb0b8803f62e956940533e82070ff2cf5 (diff)
server: Close conn when graceful restart timer expired
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm.go')
-rw-r--r--server/fsm.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/fsm.go b/server/fsm.go
index e1b85cd0..d5d75d92 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -866,6 +866,7 @@ func (h *FSMHandler) opensent() (bgp.FSMState, FsmStateReason) {
"Key": fsm.pConf.Config.NeighborAddress,
"State": fsm.state.String(),
}).Warn("graceful restart timer expired")
+ h.conn.Close()
return bgp.BGP_FSM_IDLE, FSM_RESTART_TIMER_EXPIRED
}
case i, ok := <-h.msgCh.Out():
@@ -1076,6 +1077,7 @@ func (h *FSMHandler) openconfirm() (bgp.FSMState, FsmStateReason) {
"Key": fsm.pConf.Config.NeighborAddress,
"State": fsm.state.String(),
}).Warn("graceful restart timer expired")
+ h.conn.Close()
return bgp.BGP_FSM_IDLE, FSM_RESTART_TIMER_EXPIRED
}
case <-ticker.C: