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

bluezdbus/client: add retry on le-connection-abort-by-local #1255

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

dlech
Copy link
Collaborator

@dlech dlech commented Mar 17, 2023

Since BlueZ 6.62, BlueZ has a new connection error "le-connection-abort-by-local" that is seen quite frequently, particularly when there are many BLE devices in the area.

Reconnecting immediately after receiving this error is generally successful, so we add an automatic retry in the BleakClient.

This is a bit tricky because the device does actually connect in this case and we receive D-Bus property changes indicating this, so we have to be careful about waiting for the disconnect event before trying again.

Fixes: #1220

Since BlueZ 6.62, BlueZ has a new connection error
"le-connection-abort-by-local" that is seen quite frequently,
particularly when there are many BLE devices in the area.

Reconnecting immediately after receiving this error is generally
successful, so we add an automatic retry in the BleakClient.

This is a bit tricky because the device does actually connect in this
case and we receive D-Bus property changes indicating this, so we have
to be careful about waiting for the disconnect event before trying
again.

Fixes: #1220
@dlech dlech merged commit 284c3c8 into develop Mar 17, 2023
@dlech dlech deleted the retry-on-le-connection-abort-by-local branch March 17, 2023 21:45
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.

Automatic Retry Logic During Connection (DBus)
1 participant