sebastian-j-ibanez / fsync

fsync is a CLI tool to sync folders P2P.
MIT License
0 stars 0 forks source link

In memory []Packet limitation #2

Closed sebastian-j-ibanez closed 1 month ago

sebastian-j-ibanez commented 2 months ago

The current implementation holds ALL the packets for a file in memory before sending them to the client. The program is severely limited by the amount of available RAM and size of the file.

This should be refactored so that the packets are created, processed, and destroyed sequentially. NOT ALL AT ONCE.

This will also mean that the SocketHandler will have to perform file IO. DirManager will handle getting and validating file paths.