push
github
Ftp client: Fix burst download (#2235) * Ftp client: Fix burst download Better missing parts management (less memory used) Restart burst read if file is not complete. * ftp: prevent huge allocation Sometimes we seem to get a message with offset 0. I'm not sure why. Instead of allocating something huge, we're better off just bailing out. Signed-off-by: Julian Oes <julian@oes.ch> * ftp: address sonarcloud complain Presumably, this was wrong. Signed-off-by: Julian Oes <julian@oes.ch> * Fix ftp burst download timeout * Revert "Fix ftp burst download timeout" This reverts commit 342df2ecc. * ftp: fixup lossy burst download This was my messy try to fix the edge case where the very last burst packet which contains burst_complete=1 is lost. Signed-off-by: Julian Oes <julian@oes.ch> * Ftp burst download : fix offset in case of timeout --------- Signed-off-by: Julian Oes <julian@oes.ch> Co-authored-by: Julian Oes <julian@oes.ch>
59 of 83 new or added lines in 2 files covered. (71.08%)
7 existing lines in 2 files now uncovered.10081 of 27730 relevant lines covered (36.35%)
125.25 hits per line