raiseConnectionTimeoutError,"could not obtain a database connection#{" within #{@timeout} seconds"if@timeout}. The max pool size is currently #{@size}; consider increasing it."
end
unlessconn
if@connections.size<@size
conn=checkout_new_connection
conn.lease
end
end
ifconn
checkout_and_verifyconn
else
raiseConnectionTimeoutError,"could not obtain a database connection#{" within #{@timeout} seconds"if@timeout}. The max pool size is currently #{@size}; consider increasing it."