You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the _acquired function of lock.py, the code first sets a key, then calls watch with no timeout. If the lock is held by a peer who ever calls renew(), this causes an uncaught exception.
Specifically, if you're using TTLs, the key might expire before the watch returns, which causes the later call to _acquired to fail.
The whole idea of having a recursive function which contains an infinite loop is kind of hinky.
The text was updated successfully, but these errors were encountered:
In the
_acquired
function oflock.py
, the code first sets a key, then callswatch
with no timeout. If the lock is held by a peer who ever callsrenew()
, this causes an uncaught exception.Specifically, if you're using TTLs, the key might expire before the
watch
returns, which causes the later call to_acquired
to fail.The whole idea of having a recursive function which contains an infinite loop is kind of hinky.
The text was updated successfully, but these errors were encountered: