Skip to content

Commit

Permalink
feat: improve chance of connecting with poor signal (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Aug 4, 2022
1 parent 74aca90 commit f0322e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bleak_retry_connector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
# to finish in < 60s or declare we cannot connect

MAX_CONNECT_ATTEMPTS = 5
BLEAK_TIMEOUT = 10
BLEAK_TIMEOUT = 12

# Bleak may not always timeout
# since the dbus connection can stall
# so we have an additional timeout to
# be sure we do not block forever
BLEAK_SAFETY_TIMEOUT = 12
BLEAK_SAFETY_TIMEOUT = 13

# These errors are transient with dbus, and we should retry
TRANSIENT_ERRORS = {"le-connection-abort-by-local", "br-connection-canceled"}
Expand Down

0 comments on commit f0322e7

Please sign in to comment.