Skip to content

Commit

Permalink
Do not close the control connection after every refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
ashetkar committed Apr 23, 2024
1 parent e96945d commit 27cd3e2
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ private static synchronized boolean checkAndRefresh(LoadBalanceProperties loadBa
controlConnection = new PgConnection(hspec, user, dbName, props, url);
}
refresh(controlConnection, lb.getRefreshListSeconds());
controlConnection.close();
break;
} catch (SQLException ex) {
if (PSQLState.UNDEFINED_FUNCTION.getState().equals(ex.getSQLState())) {
Expand Down

0 comments on commit 27cd3e2

Please sign in to comment.