for bug #237, when recv thread failed, quit the cycle. 2.0.44