put recv_ctrl into pthread