Class: SSHKit::Backend::ConnectionPool
- Inherits:
-
Object
- Object
- SSHKit::Backend::ConnectionPool
- Defined in:
- lib/patches/sshkit/connection_pool.rb
Instance Method Summary collapse
Instance Method Details
#close_all_connections ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/patches/sshkit/connection_pool.rb', line 6 def close_all_connections @mutex.synchronize do @pool.values.each do |entries| entries.each do |entry| entry.connection.close if entry.connection.respond_to?(:close) && !entry.closed? end end end flush_connections end |