def _on_connection_limit_delivery(
        self, delivery: QuicDeliveryState, limit: Limit
    ) -> None:
        """
        Callback when a MAX_DATA or MAX_STREAMS frame is acknowledged or lost.
        """
        if delivery != QuicDeliveryState.ACKED:
            limit.sent = 0

        Callback when a MAX_DATA or MAX_STREAMS frame is acknowledged or lost.
        
src/aioquic/quic/connection.py