Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion clcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def acquire(self):
elif time.time() - startTime > self._timeoutMs/1000:
raise ObjectCacheLockException("Timeout waiting for file lock")
else:
pollDelay = random.uniform(0.01, 0.1)
pollDelay = random.uniform(0.1, 1.0)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious: what does this fix? SMB connections don't like polling too often for some reason?

time.sleep(pollDelay)

def release(self):
Expand Down