]> git.ipfire.org Git - thirdparty/bird.git/commit
Fix race condition that breaks BGP connections after reconfigure.
authorOndrej Zajicek <santiago@crfreenet.org>
Wed, 29 Oct 2008 13:16:34 +0000 (14:16 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Wed, 29 Oct 2008 13:16:34 +0000 (14:16 +0100)
commite16466b379be2b94c84b351a69e63b6de5be9dc5
treed1b33be94f4181aaaeec89597e8f09093c8bceda
parentf0ad56f4414fef2781339cfa41704f7bf4c61ad2
Fix race condition that breaks BGP connections after reconfigure.

RFC says that only connections in OpenConfirm and Established state
should participate in connection collision detection.

The current implementation leads to race condition when both sides
are trying to connect at the almost same time, then both sides
receive OPEN message by different connections at the almost same
time and close the other connection. Both connections are
closed and the both sides end in  start/idle or start/active
state.
proto/bgp/packets.c