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.
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.