2.x fix download multi connection/optimise serve file

I think it is clear what the changes are. Or further explanation is needed?