Backport ConnectionPoolKeyStrategy for 1.7.x branch