mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-07-25 15:55:24 -04:00
Improve resource transfer throughput on high-MTU links
This commit is contained in:
parent
bf6e73e163
commit
f5cf438abd
6 changed files with 43 additions and 12 deletions
|
@ -137,7 +137,11 @@ class Packet:
|
|||
self.fromPacked = True
|
||||
self.create_receipt = False
|
||||
|
||||
self.MTU = RNS.Reticulum.MTU
|
||||
if destination and destination.type == RNS.Destination.LINK:
|
||||
self.MTU = destination.mtu
|
||||
else:
|
||||
self.MTU = RNS.Reticulum.MTU
|
||||
|
||||
self.sent_at = None
|
||||
self.packet_hash = None
|
||||
self.ratchet_id = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue