Skip to content

Commit

Permalink
fix(PostgreSQL): idle timeout disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed May 15, 2022
1 parent c826888 commit a082514
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/libs/clients/PostgreSQLClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ export class PostgreSQLClient extends AntaresCore {

async getConnectionPool () {
const dbConfig = await this.getDbConfig();
const pool = new pg.Pool({ ...dbConfig, max: this._poolSize });
const pool = new pg.Pool({
...dbConfig,
max: this._poolSize,
idleTimeoutMillis: 0
});
const connection = pool;

if (this._params.readonly) {
Expand Down

0 comments on commit a082514

Please sign in to comment.