Michilis and Claude Fable 5.1
b27b0b7bcb
Make the named mutex atomic
...
Lock did a get-then-set on the map without holding mutexMapSync, and
Unlock removed the entry before unlocking it. Two handlers that arrived
for a name not yet in the map each got their own mutex, and a waiter
could end up holding a mutex that later callers could not see. Both let
two button presses run the same faucet or inline object at once.
Entries are now created and looked up under one lock and reference
counted, so they are only removed when the last holder unlocks. Tests
run 200 goroutines through Lock and LockWithContext under -race.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com >
2026-11-13 20:41:39 +00:00
902928f794
perform graceful shutdown on SIGTERM and SIGSTOP ( #281 )
...
* perform graceful shutdown on SIGTERM and SIGSTOP
* comments
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2022-01-23 00:48:27 +01:00
545d20d043
Mutex fix 329823hf ( #287 )
...
* big change
* mutex
* global lock
* another lock
* fix log
* trySendMessageEditable added
* defer before return
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2022-01-14 20:34:20 +01:00
a7b9506a9f
better log ( #282 )
...
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2022-01-11 00:34:59 +01:00
c1fb07fcda
mutex return ( #280 )
...
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2022-01-09 23:44:06 +01:00
b6d1ed97f1
failsaves ( #278 )
...
* failsaves
* failsafe2
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2022-01-09 21:43:02 +01:00
8f60cb82f3
add admin service ( #263 )
...
* add admin server + service
* string fixes
* ban and unban user
* add return
* ban using admin key
* ban reason
* remove redundant func call
* add http status
* add log
* anon_id_sha256 (#262 )
* anon_id_sha256
* refactor sha256 hash to strings package
* oops
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
* add admin server + service
* ban and unban user
* string fixes
* add return
* ban using admin key
* ban reason
* remove redundant func call
* add http status
* add log
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
Co-authored-by: LightningTipBot <88730856+LightningTipBot@users.noreply.github.com >
2022-01-05 01:40:37 +01:00
gohumble and GitHub
f1df1e6377
only remove on unlock ( #246 )
2021-12-26 16:58:05 +01:00
gohumble and GitHub
35d5ed8d8e
fix nLocks ( #241 )
2021-12-26 15:12:18 +01:00
07ccc6cc28
Unlock admin ( #240 )
...
* add mutex http endpoints
* remove mutex by id
* remove mutex by id
Co-authored-by: lngohumble <lngohumble@gmail.com >
2021-12-26 14:51:10 +01:00
gohumble and GitHub
24e4212a93
add mutex http endpoints ( #238 )
2021-12-26 14:20:50 +01:00
5414c82339
Logging mutex fix ( #205 )
...
* speed up tx lock
* better logging
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2021-12-24 15:00:55 +01:00
gohumble and GitHub
47ef5baee3
fix mutex final last v2 maybe ( #202 )
...
* remove mutex on unlock
* add pprof
* fix mutex lock
* fix logs
2021-12-24 14:25:35 +01:00
8f8644a1d2
Faucet panic ( #199 )
...
* speed up tx lock
* remove panic
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2021-12-24 01:45:07 +01:00
f9aed70869
Soft lock ( #198 )
...
* add Lock and Unlock soft
* Update mutex.go
* sync mutex
* mutex bracket
* add idInterceptor
* context lock
Co-authored-by: lngohumble <lngohumble@gmail.com >
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com >
2021-12-24 00:12:57 +01:00
LightningTipBot and GitHub
67cff58c63
Revert "Soft lock ( #195 )" ( #196 )
...
This reverts commit 4730c94c84 .
2021-12-23 19:29:14 +01:00
4730c94c84
Soft lock ( #195 )
...
* add Lock and Unlock soft
* Update mutex.go
Co-authored-by: lngohumble <lngohumble@gmail.com >
2021-12-23 19:25:55 +01:00
LightningTipBot and GitHub
e53ef94306
Revert "add Lock and Unlock soft ( #193 )" ( #194 )
...
This reverts commit a9f2728c93 .
2021-12-23 19:08:06 +01:00
gohumble and GitHub
a9f2728c93
add Lock and Unlock soft ( #193 )
2021-12-23 19:06:15 +01:00
gohumble and GitHub
dd88c93474
add mutex package ( #185 )
...
* add mutex package
* fix cancelSendHandler
2021-12-23 15:47:18 +01:00