Generate a free connection from the pool.
If pre_ping is True, then the connection is tested whether its alive or not. If not, then reconnect.
pre_ping