@@ -58,7 +58,10 @@ class AutoInterface(Interface):
5858    MULTICAST_PERMANENT_ADDRESS_TYPE  =  "0" 
5959    MULTICAST_TEMPORARY_ADDRESS_TYPE  =  "1" 
6060
61-     PEERING_TIMEOUT     =  10.0 
61+     PEERING_TIMEOUT     =  22.0 
62+     ANNOUNCE_INTERVAL   =   1.6 
63+     PEER_JOB_INTERVAL   =   4.0 
64+     MCAST_ECHO_TIMEOUT  =   6.5 
6265
6366    ALL_IGNORE_IFS      =  ["lo0" ]
6467    DARWIN_IGNORE_IFS   =  ["awdl0" , "llw0" , "lo0" , "en5" ]
@@ -136,15 +139,15 @@ def __init__(self, owner, configuration):
136139        self .outbound_udp_socket  =  None 
137140
138141        self .announce_rate_target  =  None 
139-         self .announce_interval  =  AutoInterface .PEERING_TIMEOUT / 6.0 
140-         self .peer_job_interval  =  AutoInterface .PEERING_TIMEOUT * 1.1 
142+         self .announce_interval  =  AutoInterface .ANNOUNCE_INTERVAL 
143+         self .peer_job_interval  =  AutoInterface .PEER_JOB_INTERVAL 
141144        self .peering_timeout    =  AutoInterface .PEERING_TIMEOUT 
142-         self .multicast_echo_timeout  =  AutoInterface .PEERING_TIMEOUT / 2 
145+         self .multicast_echo_timeout  =  AutoInterface .MCAST_ECHO_TIMEOUT 
143146
144147        # Increase peering timeout on Android, due to potential 
145148        # low-power modes implemented on many chipsets. 
146149        if  RNS .vendor .platformutils .is_android ():
147-             self .peering_timeout  *=  2.5 
150+             self .peering_timeout  *=  1.25 
148151
149152        if  allowed_interfaces  ==  None :
150153            self .allowed_interfaces  =  []
0 commit comments