Skip to content

Commit c0c23d3

Browse files
authored
fix: add tcpKeepAlive to connectionPool config (#258)
1 parent 7febb57 commit c0c23d3

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
99

10+
## [8.1.3]
11+
12+
- Adds tcpKeepAlive to the connection pool config
13+
1014
## [8.1.2]
1115

1216
- Adds user_id index to the user roles table

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'java-library'
33
}
44

5-
version = "8.1.2"
5+
version = "8.1.3"
66

77
repositories {
88
mavenCentral()

src/main/java/io/supertokens/storage/postgresql/ConnectionPool.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ private synchronized void initialiseHikariDataSource() throws SQLException, Stor
9191
config.addDataSourceProperty("cachePrepStmts", "true");
9292
config.addDataSourceProperty("prepStmtCacheSize", "250");
9393
config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");
94+
config.addDataSourceProperty("tcpKeepAlive", "true");
9495
// TODO: set maxLifetimeValue to lesser than 10 mins so that the following error doesnt happen:
9596
// io.supertokens.storage.postgresql.HikariLoggingAppender.doAppend(HikariLoggingAppender.java:117) |
9697
// SuperTokens

0 commit comments

Comments
 (0)