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

Adding timeout to dbus call as well to make sure it doesn't hang forever #306

Merged
merged 1 commit into from
Sep 25, 2020

Conversation

cspensky
Copy link
Contributor

I have seen cases where this would get hung up. It seems like it can be fixed by simply passing the same argument into the DBus request. In theory the timeout could be 2x the timeout value. If we care about that, we could do timeout/2 but the intent is moreso that it does not hang forever.

@hbldh hbldh self-assigned this Sep 25, 2020
@hbldh hbldh self-requested a review September 25, 2020 06:26
Copy link
Owner

@hbldh hbldh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually did not know there was a timeout argument to callRemote. Very good.

@hbldh hbldh merged commit 39da747 into hbldh:develop Sep 25, 2020
@hbldh hbldh added Backend: BlueZ Issues and PRs relating to the BlueZ backend bug Something isn't working enhancement New feature or request labels Sep 25, 2020
@hbldh
Copy link
Owner

hbldh commented Sep 25, 2020

Thank you for this fix!

@hbldh hbldh mentioned this pull request Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend: BlueZ Issues and PRs relating to the BlueZ backend bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants