cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Borrow functionality implementation details and heartbeat in disconnected environment

Borrow functionality implementation details and heartbeat in disconnected environment

Question:

How does borrow functionality impmentation works internally for FNP source code?

Answer:

For the first checkout from server, there will be 2 cycles of checkout running, which ensures the borrow cache creation and later checking out the license from the same local borrow cache.

At first cycle, the client application (lc_checkout()) searches if any local borrow cache is available on server.

  >> If no then it will proceed with the checkout from server and local borrow cache will be created.

          To authenticate the borrow cache, client will perform another cycle of checkout request, where it will again search for the local borrow cache - which exists this time. This time checkout will be performed from local borrow cache and no communication with server will be performed.

  >> If yes, then no checkout from server will be performed. But, the borrow cache will be accounted for checkout success.

====================================================================

Question:

How does borrow functionality implements heartbeat in disconnected environment ?

Answer:

Now, when client checkout is performed from the borrow cache, then there is no actual connection to the vendor daemon - which means there is no socket connection created with the daemon.

Because of that, on every heartbeat cycle (or expiration of the cycle),, client will be treated as a disconnected one and a reconnection will be performed. During this reconnection cycle, the lc_checkout() call will at first search for the local borrow cache - authenticate the details of it - confirm if the borrow duration is not over yet AND post the complete authentication process, checkout will be a success and that's how the local borrow cache maintains and validates the expiration of borrow duration in a disconnected environment.

Was this article helpful? Yes No
No ratings
Version history
Revision #:
1 of 1
Last update:
‎Feb 12, 2020 03:13 AM
Updated by:
 
Contributors