hyprspace
hyprspace copied to clipboard
QUIC, MTU and fragmentation
It seems that when you have a network that can't carry full 1500 byte IP packets (1468 bytes in my case), Hyprspace over QUIC may end up with a broken connection. Hyprspace uses an internal hardcoded MTU of 1420 bytes. Maybe there's a way to automatically negotiate appropriate MTU sizes?
Manually setting MTU, like how it's handled in Wireguard, would also be nice alongside it, MTU: auto
for negotiated; MTU: 1420
for manual.
Does libp2p support per-connection MTU settings or is it across all connections the node manages? If it's not doable per-connection then it might interfere with this: https://github.com/hyprspace/hyprspace/discussions/47#discussioncomment-1448528