a connection's timeout is halved for every extra connection from the same host. Also keep track of when we don't need to use a connection anymore, so we can close it and free the resource for another connection.
and comment it out, it's only used to generate a starting test case Coverity 182506