Matt Keeler
90ae4a1f1e
OSS KV Modifications to Support Namespaces
2019-11-25 12:57:35 -05:00
Hamish
ebda1e8fda
Fix lock and semaphore timeouts
2018-07-06 10:55:25 +01:00
Ryan Slade
6f05ea91a3
Replace time.Now().Sub(x) with time.Since(x)
2017-10-17 20:38:24 +02:00
James Bardin
3ff612d625
retry locks on network errors ( #3553 )
...
* retry locks on network errors
When communicating with a local agent and watching a lock, a dropped
connection between the agent and server will show up as a server error
and immediately be retried. However if the client is connected to a
remote server, a dropped connection immediately aborts the lock.
* Updates comment about it being unsafe for writes.
2017-10-11 07:42:10 -07:00
Frank Schroeder
9de4555c0c
golint: Untangle if blocks with return in else
2017-04-25 09:26:13 -07:00
James Phillips
dd4610e917
Factors server error checking into a new function.
2016-01-06 11:35:16 -08:00
James Phillips
6dd0835319
Makes the timeout behavior more intuitive.
...
Previously, it would try once "up to" the timeout, but in practice it would
just fall through. This modifies the behavior to block until the timeout has
been reached.
2016-01-06 09:40:20 -08:00
James Phillips
169825ed90
Adds the ability for semaphore monitors to ride out brief periods of 500 errors.
2016-01-05 18:22:36 -08:00
James Phillips
3348cf4c0b
Adds "try" support to locks and semaphores.
2016-01-05 18:22:36 -08:00
Dale Wijnand
c5168e1263
Fix a bunch of typos.
2015-09-15 13:22:08 +01:00
highlyunavailable
536db1fb9f
Remove unused DefaultSemaphoreRetryTime
...
Fixes #932
DefaultSemaphoreRetryTime is actually unused, unlike DefaultLockRetryTime.
2015-05-15 08:25:02 -07:00
Armon Dadgar
707b232274
api: Refactor to share session renew code
2015-01-19 16:53:47 -10:00
Armon Dadgar
bed066dda9
api: Detect conflicting existing values for lock/semaphore
2015-01-19 15:32:19 -10:00
Armon Dadgar
1a6b160641
api: Make channels receive only
2015-01-19 14:37:36 -10:00
Armon Dadgar
af186ac54a
api: Adding Destroy to cleanup a semaphore
2015-01-13 14:18:28 -08:00
Armon Dadgar
2baa97dde5
api: Changing default semaphore key
2015-01-13 11:51:12 -08:00
Armon Dadgar
229ee483cb
api: More reliable session check
2015-01-13 11:50:57 -08:00
Armon Dadgar
755525e424
api: Adding semaphore tests and fixes
2015-01-12 18:13:52 -08:00
Armon Dadgar
161633eee4
api: First pass at semaphore
2015-01-12 17:43:54 -08:00