summaryrefslogtreecommitdiffhomepage
path: root/server/server.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-09 18:29:11 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-10-09 18:29:11 +0900
commita1fc515fb323ba19a596770e2915728b382608c4 (patch)
treedf188feaf33179c0aba3d7a50ef44fde22188247 /server/server.go
parent28f62b3a04b220ffd5df7ec6f6a46e710dda298e (diff)
server: can safely clear staleAccepted after reset
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/server.go')
-rw-r--r--server/server.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/server.go b/server/server.go
index 893658b1..eda7a3d2 100644
--- a/server/server.go
+++ b/server/server.go
@@ -1477,6 +1477,7 @@ func (server *BgpServer) handleGrpc(grpcReq *GrpcRequest) []*SenderMsg {
break
}
for _, peer := range peers {
+ peer.staleAccepted = false
peer.accepted = 0
}
if grpcReq.RequestType == REQ_NEIGHBOR_SOFT_RESET {