Class: Thin::Backends::UnixServer

Inherits:
Object
  • Object
show all
Defined in:
lib/garbageman/ext/thin.rb

Instance Method Summary collapse

Instance Method Details

#connect_with_callbacksObject Also known as: connect



37
38
39
40
41
42
43
# File 'lib/garbageman/ext/thin.rb', line 37

def connect_with_callbacks
  Thin::Server.run_before_startup_callbacks
  connect_without_callbacks.tap do
    Thin::Backends::Base.server_index = @socket.to_s.sub(/^.*?\.(\d+)\.sock$/, '\\1').to_i
    Thin::Server.run_after_startup_callbacks
  end
end