def METHOD_NAME(time_sleep, recv_message, crypt):
    recv_message.side_effect = [socket.timeout] * 2 + [socket.error('recv_error')]
    expected_result = {'errno': None, 'error': 'recv_error', 'retryable': False, 'status': 1}
    assert crypt.raw_daemon_request(data={}) == expected_result
    assert time_sleep.call_count == 2