mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-20 01:58:10 +02:00
There are two data race in current code: - Call to close pub sub conn and renew pub sub conn - Call to close notify channel and send data to it Fixing them by: - Moving pub sub conn creation/renew in the doNotifyLoop - Add a lock to guard before close/send data to channel, and also add another check for context was done at the beginning of notify loop. Verifying by running: for _ in {1..100}; do go test -race -count=1 ./pkg/storage/redis/... done with no failure. |
||
---|---|---|
.. | ||
inmemory | ||
redis | ||
encrypted.go | ||
encrypted_test.go | ||
storage.go | ||
storage_test.go |