sim590 / dpaste

A simple pastebin for light values (max 64KB) using OpenDHT distributed hash table (with support for encryption).
GNU General Public License v3.0
15 stars 4 forks source link

WIP: Splitting a file in several packets #17

Open sim590 opened 4 years ago

sim590 commented 4 years ago

This introduces a new feature: packet splitting. This effectively splits files bigger than the maximum size allowed by OpenDHT (which is around 56 KiB) and spreads the pieces in packets published evenly on the DHT. Let's consider the following regarding this new approach:

Tests have also been added to verify good behaviour of different new functions.

N.B: OpenDHT advertises 64KiB as its maximum value size, but it doesn't take serializing into account so the effective maximum size is rather around 56 KiB.

sim590 commented 4 years ago

As this change does break in some way compatibility with previous versions, this change should be part of the 1.0.0 release to indicate the possible break.