mirror of
https://github.com/markqvist/Reticulum
synced 2026-11-22 23:10:32 +00:00
Fixed medium_timeout init
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -3294,7 +3294,7 @@ class Transport:
|
||||
# except the requestor interface. The discovery
|
||||
# timeout must also cover a full round trip for
|
||||
# an MTU on the slowest online interface.
|
||||
if not Transport.lowest_interface_bitrate: medium_timeout = None
|
||||
if not Transport.lowest_interface_bitrate: medium_timeout = 0
|
||||
else: medium_timeout = 2*(RNS.Reticulum.MTU*8/max(Transport.lowest_interface_bitrate, RNS.Reticulum.MINIMUM_BITRATE)) + RNS.Reticulum.DEFAULT_PER_HOP_TIMEOUT
|
||||
discovery_timeout = max(Transport.PATH_REQUEST_TIMEOUT, medium_timeout)
|
||||
|
||||
|
||||
Reference in new issue
Block a user