block sending data, prevent memory allocation too fast when sending a large file