Turns out internet MTU must be honored, otherwise packets are dropped/not reassembled. Setting to 1500 bytes for transfer messages.

This commit is contained in:
Kleissner
2021-11-05 03:39:46 +01:00
parent 0d62c215ee
commit 14f034cc8d
3 changed files with 5 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ func newVirtualPacketConn(peer *PeerInfo, protocol uint8, hash []byte, offset, l
hash: hash,
offset: offset,
limit: limit,
incomingData: make(chan []byte),
incomingData: make(chan []byte, 100),
outgoingData: make(chan []byte),
terminateChan: make(chan struct{}),
}