]> git.ipfire.org Git - thirdparty/bird.git/commit
IO: Replace RX priority heuristic with explicit mark
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 6 Apr 2016 09:49:34 +0000 (11:49 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 6 Apr 2016 09:49:34 +0000 (11:49 +0200)
commit9e7b3ebdf9556d7464911dd39e862b1c003319b3
treef1b3415e75106fd7d1ab7d17c7c47cb6e0f7583d
parente86cfd41d975122cc944db68383aef4028da9575
IO: Replace RX priority heuristic with explicit mark

In BIRD, RX has lower priority than TX with the exception of RX from
control socket. The patch replaces heuristic based on socket type with
explicit mark and uses it for both control socket and BGP session waiting
to be established.

This should avoid an issue when during heavy load, outgoing connection
could connect (TX event), send open, but then failed to receive OPEN /
establish in time, not sending notifications between and therefore
got hold timer expired error from the neighbor immediately after it
finally established the connection.
lib/socket.h
proto/bgp/bgp.c
sysdep/unix/io.c
sysdep/unix/main.c