Wait before retrying on CEASE.

Using bgp_restart() floods the peer with connection requests. Use bgp_retry()
instead.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
Benjamin Cama 2011-07-23 18:57:27 +02:00
parent b36141c0c7
commit 625794576e

2
bgp.c
View file

@ -1011,7 +1011,7 @@ static int bgp_handle_input(struct bgp_peer *peer)
if (notification->error_code == BGP_ERR_CEASE) if (notification->error_code == BGP_ERR_CEASE)
{ {
LOG(4, 0, 0, "BGP peer %s sent CEASE\n", peer->name); LOG(4, 0, 0, "BGP peer %s sent CEASE\n", peer->name);
bgp_restart(peer); bgp_set_retry(peer);
return 0; return 0;
} }