Skip to content

Commit 1c11cde

Browse files
committed
Increased maximum number of threads in global_io_executor.
1 parent 3889344 commit 1c11cde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/concurrent/configuration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ def self.new_fast_executor(opts = {})
190190

191191
def self.new_io_executor(opts = {})
192192
ThreadPoolExecutor.new(
193-
min_threads: [2, Concurrent.processor_count].max,
194-
max_threads: Concurrent.processor_count * 100,
193+
min_threads: [2, Concurrent.processor_count].max,
194+
max_threads: ThreadPoolExecutor::DEFAULT_MAX_POOL_SIZE,
195195
stop_on_exit: opts.fetch(:stop_on_exit, true),
196196
idletime: 60, # 1 minute
197197
max_queue: 0, # unlimited

0 commit comments

Comments
 (0)