mirror of
https://github.com/minio/minio.git
synced 2025-12-07 16:22:33 -05:00
Previously, more than one goroutine calls RPCClient.dial(), each goroutine gets a new rpc.Client but only one such client is stored into RPCClient object. This leads to leaky connection at the server side. This is fixed by taking lock at top of dial() and release on return.
6.1 KiB
6.1 KiB