Skip to content

Commit 71e761c

Browse files
authored
Merge pull request #50 from jaceksokol/master
Resolve db host on reconnection
2 parents df6446f + 626fcea commit 71e761c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/github/pgasync/impl/PgConnectionPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public abstract class PgConnectionPool implements ConnectionPool {
6262
final boolean pipeline;
6363

6464
public PgConnectionPool(PoolProperties properties) {
65-
this.address = new InetSocketAddress(properties.getHostname(), properties.getPort());
65+
this.address = InetSocketAddress.createUnresolved(properties.getHostname(), properties.getPort());
6666
this.username = properties.getUsername();
6767
this.password = properties.getPassword();
6868
this.database = properties.getDatabase();

0 commit comments

Comments
 (0)