Description
Currently the http connections are flushed for every 100 files, however if there are multiple levels of directories in the namespace then flushing will be postponed till multiple directories levels have been traversed. This connection timeout can be avoided if both files and directories are considered for the flushing query.
if (showprogress && (replRes.totalFiles + ecRes.totalFiles) % 100 == 0) {
out.println();
out.flush();
}