Only set idle timer if keepalive is enabled