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

Plugins: don't remove pending timeouts on disconnect #666

Merged
merged 2 commits into from
Feb 12, 2019

Conversation

julianoes
Copy link
Collaborator

We should not get rid of pending timeouts just because the system is reported to be timed out which can happen if we miss a couple of heartbeats in a row due to a lossy connection. We still want to get the notification that our current transaction timed out, otherwise we'll wait for an answer indefinitely (unless the user of the API checks for a timeout again which shouldn't be required).

Found as part of Auterion/mavlink-testing-suite#10.

We should not unregister stuff just because a vehicle timed out,
otherwise we leave things unfinished in the case of a connection loss,
and a user might wait forever for a callback with a result.
We should not drop timeouts just because a system is lost/timed out.
@julianoes julianoes changed the title Don't remove pending timeouts on disconnect Plugins: don't remove pending timeouts on disconnect Feb 12, 2019
@julianoes julianoes merged commit 91ed9c2 into develop Feb 12, 2019
@julianoes julianoes deleted the fix-unregistering branch February 12, 2019 13:55
@hamishwillee
Copy link
Collaborator

Merging a demonic PR (666). Very brave.

@JonasVautherin
Copy link
Collaborator

Isn't it "999" in Australia? I thought everything was inverted there :trollface:

@hamishwillee
Copy link
Collaborator

hamishwillee commented Feb 12, 2019

No, -666 (negative), or i666 (complex)

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

Successfully merging this pull request may close these issues.

3 participants