修复在远程服务器关闭连接时, 数据不被cout输出.

Signed-off-by: Jack <jack.wgm@gmail.com>