Class: Mongrel::HttpServer

Inherits:
Object
  • Object
show all
Defined in:
lib/patches.rb

Instance Method Summary collapse

Instance Method Details

#orig_process_clientObject

redefine Montrel::HttpServer::process_client so that we can intercept the socket that is being used so Spawnling can close it upon forking


86
# File 'lib/patches.rb', line 86

alias_method :orig_process_client, :process_client

#process_client(client) ⇒ Object


87
88
89
90
# File 'lib/patches.rb', line 87

def process_client(client)
  ::Spawnling.resources_to_close(client, @socket)
  orig_process_client(client)
end