From: Donald Sharp Date: Thu, 30 Jan 2025 14:02:44 +0000 (-0500) Subject: zebra: fpm_listener allow continued operation X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e71d29983aadea858ffa7c1fb6812c164c1e05f7;p=matthieu%2Ffrr.git zebra: fpm_listener allow continued operation In fpm_listener, when a error is detected it would stop listening and not recover. Modify the code to close the socket and allow the connection to recover. Signed-off-by: Donald Sharp --- diff --git a/zebra/fpm_listener.c b/zebra/fpm_listener.c index 7d84c706d4..9181257db3 100644 --- a/zebra/fpm_listener.c +++ b/zebra/fpm_listener.c @@ -756,8 +756,10 @@ static void fpm_serve(void) while (1) { hdr = read_fpm_msg(buf, sizeof(buf)); - if (!hdr) + if (!hdr) { + close(glob->sock); return; + } process_fpm_msg(hdr); }