服务端挂掉,客户端会进入死循环

# 当返回结果为空或者收到了我们发送的数据就将连接关闭 
keep_running = not ( data or  (bytes_received and  (bytes_received == bytes_sent))  )