mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 01:57:26 +00:00
Merge pull request #11232 from opensourcerouting/bgp-sendhold-derp
bgpd: fix oopsie with SendHoldTime==0
This commit is contained in:
commit
197191a0ce
@ -147,7 +147,9 @@ static void bgp_packet_add(struct peer *peer, struct stream *s)
|
|||||||
* timer that ticks down SendHoldTime, as we'll be here sooner
|
* timer that ticks down SendHoldTime, as we'll be here sooner
|
||||||
* or later anyway and will see the checks below failing.
|
* or later anyway and will see the checks below failing.
|
||||||
*/
|
*/
|
||||||
if (delta > 2 * (intmax_t)holdtime) {
|
if (!holdtime) {
|
||||||
|
/* no holdtime, do nothing. */
|
||||||
|
} else if (delta > 2 * (intmax_t)holdtime) {
|
||||||
flog_err(
|
flog_err(
|
||||||
EC_BGP_SENDQ_STUCK_PROPER,
|
EC_BGP_SENDQ_STUCK_PROPER,
|
||||||
"%s has not made any SendQ progress for 2 holdtimes, terminating session",
|
"%s has not made any SendQ progress for 2 holdtimes, terminating session",
|
||||||
|
Loading…
Reference in New Issue
Block a user