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

Version Path
rainbows-5.2.1 lib/rainbows/never_block/core.rb
rainbows-5.2.0 lib/rainbows/never_block/core.rb
rainbows-5.1.1 lib/rainbows/never_block/core.rb
rainbows-5.1.0 lib/rainbows/never_block/core.rb
rainbows-5.0.0.5.ge717 lib/rainbows/never_block/core.rb
rainbows-5.0.0 lib/rainbows/never_block/core.rb
rainbows-4.7.0 lib/rainbows/never_block/core.rb
rainbows-4.6.2 lib/rainbows/never_block/core.rb
rainbows-4.6.1 lib/rainbows/never_block/core.rb
rainbows-4.6.0.4.g4108 lib/rainbows/never_block/core.rb
rainbows-4.6.0 lib/rainbows/never_block/core.rb
rainbows-4.5.0 lib/rainbows/never_block/core.rb
rainbows-4.4.3 lib/rainbows/never_block/core.rb
rainbows-4.4.2 lib/rainbows/never_block/core.rb
rainbows-4.4.1.1.gd5c8c lib/rainbows/never_block/core.rb
rainbows-4.4.1 lib/rainbows/never_block/core.rb
rainbows-4.4.0 lib/rainbows/never_block/core.rb
rainbows-4.3.1 lib/rainbows/never_block/core.rb
rainbows-4.3.0 lib/rainbows/never_block/core.rb
rainbows-4.2.0 lib/rainbows/never_block/core.rb