ruby-net-ldap icon indicating copy to clipboard operation
ruby-net-ldap copied to clipboard

WIP Add connection pool option

Open HarlemSquirrel opened this issue 5 years ago • 0 comments

# Example usage
ldap_with_pool = Net::LDAP.new(
  host: host_name,
  port: 389, 
  connection_pool: { 
    size: 4, # Maximum connections to open
    timeout: 15 # Number of seconds to wait for a connection to free up before raising a timeout error
  }
)

See https://github.com/mperham/connection_pool#usage

HarlemSquirrel avatar Jul 22 '20 05:07 HarlemSquirrel