This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
Redis: Connection Leak if Connect or ConnectAsync called from multiple threads simultaneously #253
Closed
Description
We have a customer who, under load testing, noticed connections to Redis spiking significantly. After digging into the dump of the process, we could see that many ConnectionMultiplexer objects exist in the heap. We also noticed that there were many threads calling Connect at the same time.
If multiple threads make it past the if (_connection == null) check, then there will be a connection leak for each additional thread that makes it through that check.