Closed
Description
Description
If we transfer a file with size N to add_piece and ask to write M bytes (where N > M)
Then the function will write N bytes. It seems like overkill.
I think add_piece should write M bytes only
Acceptance criteria
add_piece function writes piece_size bytes
Risks + pitfalls
If you pass /dev/zero file, then the copy will be infinite.