sitter added a comment.
TBH, I would move away from the hardcoding in general.... try to sendfile size_of_file and `if n < size` use n as new count for the next cycle. The second cycle will use the maximum regardless of what the specific kernel version has as maximum. The maximum is an implementation detail of the kernel that may change every release, so hardcoding anything seems wrong here. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D25079 To: meven, dfaure, #frameworks, davidedmundson Cc: sitter, apol, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns