do not buffer too much data when sending file