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

os/impl/LogForwarder: Do not use a static Bottle #2667

Draft
wants to merge 1 commit into
base: yarp-3.5
Choose a base branch
from

Conversation

drdanz
Copy link
Member

@drdanz drdanz commented Jul 27, 2021

When the forward method is called twice, the Bottle::clear() method could be called before the message is sent, hence deleting the bottle being sent.

This fixes the LogForwarder skipping messages when messages are sent too quickly (Fixes #2643).


Libraries

os

@drdanz drdanz self-assigned this Jul 27, 2021
@drdanz drdanz temporarily deployed to code-analysis July 27, 2021 11:12 Inactive
@drdanz drdanz temporarily deployed to code-analysis July 27, 2021 11:12 Inactive
@drdanz drdanz temporarily deployed to code-analysis July 27, 2021 11:12 Inactive
@drdanz

This comment has been minimized.

When the `forward` method is called twice, the `Bottle::clear()` method
could be called before the message is sent, hence deleting the bottle
being sent.

This fixes the `LogForwarder` skipping messages when messages are sent
too quickly (Fixes robotology#2643).
@drdanz drdanz force-pushed the LogForwarder_static_Bottle branch from 6f6c64e to 63a1e8e Compare August 2, 2021 14:23
@drdanz drdanz temporarily deployed to code-analysis August 2, 2021 14:25 Inactive
@drdanz drdanz temporarily deployed to code-analysis August 2, 2021 14:25 Inactive
@drdanz drdanz temporarily deployed to code-analysis August 2, 2021 14:25 Inactive
@drdanz drdanz marked this pull request as draft November 10, 2021 13:54
@drdanz
Copy link
Member Author

drdanz commented Nov 10, 2021

This PR is temporarily blocked, since this will block the sender when there are 2 messages in queue, and at the moment there is no way to avoid this, or to make the queue bigger.

@drdanz drdanz added this to the YARP 3.5.2 milestone Nov 12, 2021
@randaz81 randaz81 linked an issue Dec 28, 2021 that may be closed by this pull request
@drdanz drdanz modified the milestones: YARP 3.5.2, YARP 3.6.1 Dec 28, 2021
@randaz81 randaz81 removed this from the YARP 3.6.1 milestone Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Yarplogger may not report all entries
2 participants