mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-10-26 19:01:53 -04:00
Fixed medium_timeout init
This commit is contained in:
parent
68cda4a855
commit
9ae3db169e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue