class Keymap::ConnectionAdapters::ConnectionManagement

Public Class Methods

new(app) click to toggle source
# File lib/keymap/connection_adapters/abstract/connection_pool.rb, line 418
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/keymap/connection_adapters/abstract/connection_pool.rb, line 422
def call(env)
  testing = env.key?('rack.test')

  status, headers, body = @app.call(env)

  [status, headers, Proxy.new(body, testing)]
rescue
  Keymap::Base.clear_active_connections! unless testing
  raise
end