mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 11:19:13 +00:00
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:
parent
b2fc167978
commit
e71d29983a
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user