We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac18160 commit 89b8d63Copy full SHA for 89b8d63
lib/sshkit/backends/connection_pool.rb
@@ -46,7 +46,11 @@ def initialize(idle_timeout=30)
46
@caches = {}
47
@caches.extend(MonitorMixin)
48
@timed_out_connections = Queue.new
49
- Thread.new { run_eviction_loop }
+
50
+ # Spin up eviction loop only if caching is enabled
51
+ if cache_enabled?
52
+ Thread.new { run_eviction_loop }
53
+ end
54
end
55
56
# Creates a new connection or reuses a cached connection (if possible) and
0 commit comments