Skip to content

Commit

Permalink
fix: add tcpKeepAlive to psql url
Browse files Browse the repository at this point in the history
  • Loading branch information
philipsens authored Jun 29, 2023
1 parent dcfd5eb commit 915ea03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
auth="Container"
factory="org.apache.naming.factory.BeanFactory"
type="org.postgresql.xa.PGXADataSource"
url="jdbc:postgresql://${jdbc.hostname}:5432/${jdbc.database}${jdbc.adittionalUrlParameters}"
url="jdbc:postgresql://${jdbc.hostname}:${jdbc.port:-5432}/${jdbc.database}?tcpKeepAlive=${jdbc.tcpKeepAlive:-true}${jdbc.adittionalUrlParameters}"
user="${jdbc/username}"
password="${jdbc/password}"
/>
Expand Down

0 comments on commit 915ea03

Please sign in to comment.