]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: uncork/nagle socket when sending BGP NOTIFY
authorLeonid Rosenboim <Leonid.Rosenboim@windriver.com>
Fri, 14 Dec 2012 19:12:17 +0000 (19:12 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 16 Jan 2013 00:45:57 +0000 (01:45 +0100)
commit86998bc2bc9506841250c8d49dd2df2464660a18
tree1f6796236e69496f3db2bfd32eb2d43c6bfb1a37
parenta6694fe8a89b957216f548938cc31602df04d495
bgpd: uncork/nagle socket when sending BGP NOTIFY

This pushes out the NOTIFY message before closing a connection.

Previously, the TCP_CORK bandwidth optimization code caused NOTIFY
messages to disappear prior to when the connection is closed.

* bgpd/bgp_packet.c: unset CORK, set NODELAY, and replace
                     writen() by more correct write()

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_packet.c