New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description of remove() is inaccurate #155
Comments
I disagree. The _release _message is simply a notification to the server of what has happened. The remove() should directly trigger any local state clearing that needs to happen. Typically the release message is used for book-keeping on the server side and would allow additional licenses to be requested (for example from other devices) but if it is not received or responded to, the client should still have destroyed the local license. |
Good point - the license is destroyed and unusable. I think the description should focus on that. Specifically, the key steps are:
While the release message may not be a requirement, it is fundamental to the two types of sessions currently supported by this method. Both will leave some form of "session data" until the release is ACK'd by the |
Perhaps we should simply adjust the description to say "Removes all license(s) and key(s) associated with the session." ? The point of confusion is that stored session data remains after remove() is called (specifically, the record of license destruction or the record of key usage). |
SGTM. We might follow that with something about session data still being persisted until a release message is acknowledged (depending on the sessionType, though this is true for all types currently supported by this method). |
Any other comments ? Or shall we move this to "Needs implementation" ? |
How about this for replacement text under
|
I'd suggest "Other session data, if any, ..." for the second sentence. |
Looking at the steps in the algorithm, it destroys the license(s) and key(s). For @jdsmith3000's proposal with @mwatson2's suggestion SGTM, though I suggest s/Removes/Destroys/. |
Some session data isn't removed until update().
The current description of
remove()
is:However, this method does not remove anything - it generates a release message. Any removal occurs when the response to that message is passed to
update()
.(The name is also somewhat inaccurate.
release()
orrequestRemoval()
might be more accurate.)The text was updated successfully, but these errors were encountered: