Hello everyone,

I need some clarification on some behavior regarding LVL. From the
official LVL document, you will find the following statements
regarding implementing a custom LVL policy:
"The licensing server applies general request limits to guard against
overuse of resources that could result in denial of service. When an
application exceeds the request limit, the licensing server returns a
503 response, which gets passed through to your application as a
general server error...

A custom policy:
3. Uses an exponential backoff period, if retrying any requests the
result in errors. Note that the Android Market client automatically
retries failed requests, so in most cases there is no need for your
Policy to retry them."

I want to limit any possibility of user's receiving false-negatives as
much as possible, so I want to implement a lazy license policy that:
1. Checks the validity of the user a full day after the user's initial
use of the app, to bypass problems with the grace period.
2. In cases of network problems, I want to set a high retry count, so
that the user has plenty of chances to get a license response.

With that in mind, I have 3 questions:
1. How does a retry work when there is a network failure? Based on the
statement above, does the client try some max-amount of times (say 5),
and if successful contact was not made with the License Server, a
RETRY response is returned to you, and at that point you: Allow access
if the max retry count hasn't been exceeded, or deny contact otherwise
(and this will happen a single time, each time the user starts your
app and invokes a license check)?

2. Will the 503 error only be generated when the max retry count has
been exceeded, including if you have a custom policy and set your max
retries to something crazy like 100 (not what I intend to do)?

3. To those of you who have successfully deployed the LVL (and
especially something similar to the lazy license check I'm planning),
but have users who have received false-negatives, were you able to
determine the cause of those false negatives? Did you set your max
retries value to low?

Thanks,

-miketra

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to