Skip to content

Commit

Permalink
Increase idle connection check interval to 300s
Browse files Browse the repository at this point in the history
This check was creating a lot of TimerHandles when the user
had multiple bridges. We do not need to check very often
as connections usually stay around for 24+hours
  • Loading branch information
bdraco committed Nov 1, 2024
1 parent 5265b54 commit 7ac7e74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyhap/hap_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

logger = logging.getLogger(__name__)

IDLE_CONNECTION_CHECK_INTERVAL_SECONDS = 120
IDLE_CONNECTION_CHECK_INTERVAL_SECONDS = 300


class HAPServer:
Expand Down

0 comments on commit 7ac7e74

Please sign in to comment.