Fix #351 (File transfers exceed physical limitations)

Also resolve hight CPU usage problem during file transfer (was mentioned in #266).