Skip to content

Commit c99c49b

Browse files
committed
DEBUG Redshift: enable keepAlive
1 parent cf8e286 commit c99c49b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/cubejs-postgres-driver/src/PostgresDriver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ export class PostgresDriver<Config extends PostgresDriverConfiguration = Postgre
132132
user: getEnv('dbUser', { dataSource }),
133133
password: getEnv('dbPass', { dataSource }),
134134
ssl: this.getSslOptions(dataSource),
135+
// Enable keep-alive to detect broken connections
136+
keepAlive: true,
137+
keepAliveInitialDelayMillis: 10000,
135138
...config
136139
});
137140
this.pool.on('error', (err) => {

0 commit comments

Comments
 (0)