juju / persistent-cookiejar

cookiejar is a fork of net/http/cookiejar that allows serialisation of the stored cookies
BSD 3-Clause "New" or "Revised" License
112 stars 75 forks source link

Update file locking to use juju/mutex #19

Closed voidspace closed 7 years ago

voidspace commented 7 years ago

Change cookie file locking to no longer use file based locking and use juju/mutex instead. Also increase timeout and remove the exponential back-off when acquiring the lock.

This addresses Juju bug #1632362.

This change doesn't affect the API or the semantics and the cookie file locking is already tested with a concurrent access test, so there are no new tests.

voidspace commented 7 years ago

$$merge$$