diff options
author | Maria Matejka <mq@ucw.cz> | 2021-11-21 12:06:19 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-10-12 10:03:55 +0200 |
commit | 6abef2b20b88ec2aa747ff3885d7fd1c7d147cef (patch) | |
tree | 3f502324f79e55e400bbe92f1a364adbc17b0be1 | |
parent | e1701128bfdc737e04fe4bd4609020d5f93853c6 (diff) |
BGP: End route refresh before another starts
-rw-r--r-- | proto/bgp/bgp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index 573e3d25..36179eb8 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -955,6 +955,9 @@ bgp_refresh_begin(struct bgp_channel *c) if (c->load_state == BFS_LOADING) { log(L_WARN "%s: BEGIN-OF-RR received before END-OF-RIB, ignoring", p->p.name); return; } + if (c->load_state == BFS_REFRESHING) + rt_refresh_end(&c->c.in_req); + c->load_state = BFS_REFRESHING; rt_refresh_begin(&c->c.in_req); } |