]> git.proxmox.com Git - mirror_frr.git/commit - bgpd/bgp_io.c
bgpd: handle socket read errors in the main pthread
authorMark Stapp <mjs@voltanet.io>
Tue, 9 Mar 2021 16:13:41 +0000 (11:13 -0500)
committerMark Stapp <mjs@voltanet.io>
Tue, 9 Mar 2021 16:13:41 +0000 (11:13 -0500)
commit6af96fa383c645ac4d15b53faf066388909e6e4a
tree53615599ef60b34172666f25a3415aad1c774721
parentf79d311b3e0ea744cad115978b10bad2661afea9
bgpd: handle socket read errors in the main pthread

Add a handler for socket errors that runs in the main pthread,
rather than the io pthread. When the io pthread encounters a
read error, capture the error and schedule a task for the main
pthread.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
bgpd/bgp_io.c
bgpd/bgp_packet.c
bgpd/bgp_packet.h