mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-02 11:56:02 +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. |
||
---|---|---|
.. | ||
testdata | ||
option.go | ||
redis.go | ||
redis_test.go |