FokiDoki / WireRest

REST API for Wireguard
MIT License
18 stars 5 forks source link

Fixed a race condition when deleting a peer while sync is active #52

Closed FokiDoki closed 1 year ago

FokiDoki commented 1 year ago

In the previous version, if the wirerest is under high load and sync is active, the peer could be removed from the cache before it was updated by the sync thread. Because of this, a 404 may be returned when you request a peer by pubKey. A rare bug, but it happens at high loads. Now it's fixed