]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: fpm_listener allow continued operation
authorDonald Sharp <sharpd@nvidia.com>
Thu, 30 Jan 2025 14:02:44 +0000 (09:02 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 31 Jan 2025 20:05:40 +0000 (15:05 -0500)
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>
zebra/fpm_listener.c

index 7d84c706d40849710efca1b076d94ee7af0e44b9..9181257db3cf6fa1dbfc02c7ebaa4153dddbfda6 100644 (file)
@@ -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);
        }