warden/lib/warden/container/base.rb
# Override #new to make sure that acquired resources are released when
# one of the pooled resourced can not be required. Acquiring the
# necessary resources must be atomic to prevent leakage.
Override #new to make sure that acquired resources are released when
one of the pooled resourced can not be required. Acquiring the
necessary resources must be atomic to prevent leakage.
Override #new to make sure that acquired resources are released when one of the pooled resourced can not be required . Acquiring the necessary resources must be atomic to prevent leakage .
def new(conn, config = {})
          resources = {}
          acquire(resources)
          instance = super(resources, config)
          instance.register_connection(conn)
          instance
        rescue WardenError
          release(resources)
          raise
        end
def new ( conn , config = { } ) resources = { } acquire ( resources ) instance = super ( resources , config ) instance . register_connection ( conn ) instance rescue WardenError release ( resources ) raise end
Override #new to make sure that acquired resources are released when
one of the pooled resourced can not be required.
Override #new to make sure that acquired resources are released when one of the pooled resourced can not be required .
conn
config