fix #255: stress issue with large upload and download