Class: Thin::Server
- Inherits:
-
Object
- Object
- Thin::Server
- Defined in:
- lib/never_block/servers/thin.rb
Overview
Patch the thin server to use NeverBlock::Pool::FiberPool to be able to wrap requests in fibers
Constant Summary collapse
- DEFAULT_FIBER_POOL_SIZE =
20
Instance Method Summary collapse
Instance Method Details
#fiber_pool ⇒ Object
13 14 15 |
# File 'lib/never_block/servers/thin.rb', line 13 def fiber_pool @fiber_pool ||= NB::Pool::FiberPool.new(DEFAULT_FIBER_POOL_SIZE) end |