Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving notifications with dynamic lengths #235

Open
JoshuaFoundry opened this issue Oct 2, 2024 · 0 comments
Open

Receiving notifications with dynamic lengths #235

JoshuaFoundry opened this issue Oct 2, 2024 · 0 comments

Comments

@JoshuaFoundry
Copy link

I'm wanting to receive notifications from ADS logs on port 100. When I create a notification with a max length of 1024 I get this error message: "Warning: Notification sample size: 101 doesn't match: 1024"

The code that generates this error:

LOG_WARN("Notification sample size: " << size << " doesn't match: " << notification->Size());

It looks for the notification in the buffer to be the same size as what was defined in the notification. Instead of:
if (size != notification->Size())
could we do:
if (size > notification->Size())
or something else?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant