Skip to content

Commit

Permalink
zebra: Allow fpm_listener to continue to try to read
Browse files Browse the repository at this point in the history
Currently when the fpm_listener attempts to read say X
bytes it may only get Y( which is less than X ).  In this
case we should assume that the dplane_fpm_nl code is just
being slow, as that we know it is possible for it to send
a partial fpm message.  Let's just loosen the constraints
a bit and allow data to flow.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
  • Loading branch information
donaldsharp committed Feb 11, 2025
1 parent f64104b commit 54dc838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra/fpm_listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ read_fpm_msg(char *buf, size_t buf_len)
fprintf(stderr,
"Read %lu bytes but expected to read %lu bytes instead\n",
bytes_read, need_len);
return NULL;
continue;
}

if (reading_full_msg)
Expand Down

0 comments on commit 54dc838

Please sign in to comment.