rust-mysql-simple: Pooled connections are dying after timeout
I use AWS RDS, where default timeout connection is 8 hours. After 8 hours one of pooled connections is dying because of this limit and ping()
can’t detect it (or reset()
doesn’t work as expected with really dead connections).
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 15 (12 by maintainers)
Could you please set new
tcp_keepalive_time_ms
option to something like one minute?You need to switch to master branch to do this: