From e71d29983aadea858ffa7c1fb6812c164c1e05f7 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 30 Jan 2025 09:02:44 -0500 Subject: [PATCH] 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 --- zebra/fpm_listener.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }