Class: Thin::Backends::Base

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

Constant Summary collapse

@@num_connections =
0
@@server_index =
nil

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.num_connectionsObject



5
# File 'lib/garbageman/ext/thin.rb', line 5

def self.num_connections; @@num_connections; end

.server_indexObject



7
# File 'lib/garbageman/ext/thin.rb', line 7

def self.server_index; @@server_index; end

.server_index=(index) ⇒ Object



8
# File 'lib/garbageman/ext/thin.rb', line 8

def self.server_index=(index); @@server_index = index; end

Instance Method Details

#connection_finished_with_count(connection) ⇒ Object Also known as: connection_finished



10
11
12
# File 'lib/garbageman/ext/thin.rb', line 10

def connection_finished_with_count(connection)
  connection_finished_without_count(connection).tap { @@num_connections -= 1 }
end