As I wrote, FileZilla (actually pysftp, internally used by FileZilla) happens to use another API to query size of the file. So it avoids the bug.
Though even its download code contains this comment:
So it might happen that future versions stop working with your server too.
Though even its download code contains this comment:
/*
* FIXME: we can use FXP_FSTAT here to get the file size, and
* thus put up a progress bar.
*/
So it might happen that future versions stop working with your server too.