Skip to content

MySQL (Amazon RDS) connections "expire" silently; further queries hang DBeaver #287

Locked Answered by serge-rider
JonathanHarford asked this question in Q&A
Discussion options

You must be logged in to vote

Most likely server kills connection after some period of time.
Workaround: you can set driver property socketTimeout to some reasonable value (e.g. 20 seconds).
There will be one nasty side-effect. Long-running queries will fail if they will execute longer than socketTimeout.
Another workaround is to turn on connection keep-alive. This feature will be added in 3.6.3 (#6)

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kseniiaguzeeva
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #287 on December 29, 2020 15:49.