Class: Thin::Connection

Inherits:
EventMachine::Connection
  • Object
show all
Defined in:
lib/never_block/servers/thin.rb

Overview

A request is processed by wrapping it in a fiber from the fiber pool. If all the fibers are busy the request will wait in a queue to be picked up later. Meanwhile, the server will still be processing requests

Instance Method Summary collapse

Instance Method Details

#processObject



24
25
26
27
# File 'lib/never_block/servers/thin.rb', line 24

def process
    @request.threaded = false
    @backend.server.fiber_pool.spawn {post_process(pre_process)}
end