Sha256: 2f6d629ef34bb3c9ee9744b17d029673647737fea92008e5f7d40776bcecd609
Contents?: true
Size: 534 Bytes
Versions: 27
Compression:
Stored size: 534 Bytes
Contents
# -*- encoding: binary -*- # :enddoc: module Rainbows::NeverBlock::Core def init_worker_process(worker) super o = Rainbows::O pool = NB::Pool::FiberPool.new(o[:pool_size]) base = o[:backend].to_s.gsub!(/([a-z])([A-Z])/, '\1_\2').downcase! require "rainbows/never_block/#{base}" client_class = Rainbows::NeverBlock::Client client_class.superclass.const_set(:APP, Rainbows.server.app) client_class.const_set(:POOL, pool) logger.info "NeverBlock/#{o[:backend]} pool_size=#{o[:pool_size]}" end end
Version data entries
27 entries across 27 versions & 1 rubygems