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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2025-01-30 09:02:44 -05:00
parent b2fc167978
commit e71d29983a

View File

@ -756,8 +756,10 @@ static void fpm_serve(void)
while (1) { while (1) {
hdr = read_fpm_msg(buf, sizeof(buf)); hdr = read_fpm_msg(buf, sizeof(buf));
if (!hdr) if (!hdr) {
close(glob->sock);
return; return;
}
process_fpm_msg(hdr); process_fpm_msg(hdr);
} }