Avoid getting stuck in _recv_chunk (python client).