The Noise protocol only allows 65535 byte messages (http://noiseprotocol.org/noise.html#message-format). Because of this, there needs to be a way to break up network messages.
Originally, I had been under the impression that file chunks can, and should, always fit inside this packet cap; however, I don't think limiting file chunks to ~60kb is a good idea.
To solve both these problems, the network layer needs to be able to send multi part messages so these larger pieces of data can fit inside individual noise packets.
The Noise protocol only allows 65535 byte messages (http://noiseprotocol.org/noise.html#message-format). Because of this, there needs to be a way to break up network messages.
Originally, I had been under the impression that file chunks can, and should, always fit inside this packet cap; however, I don't think limiting file chunks to ~60kb is a good idea.
To solve both these problems, the network layer needs to be able to send multi part messages so these larger pieces of data can fit inside individual noise packets.