Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid calling closed? outside of synchronize block (#534)
* Avoid calling closed? outside of synchronize block `closed?` calls `process` on the connection which is not safe because we have not synchronised the connection pool. Another thread might concurrently checkout the connection and start sending commands as well. * Update lib/sshkit/backends/connection_pool/cache.rb Co-authored-by: Matt Brictson <matt@123mail.org> --------- Co-authored-by: Matt Brictson <matt@123mail.org>
- Loading branch information