handle low wait_timeout.
c0494133d4 opened this issue · 2 comments
c0494133d4 commented
Case: mysqld has wait_timeout=60
.
ffffwh commented
2 set wait_timeout for each connection
问题:
- 对于
golang database/sql
连接池自动管理的连接, 无法执行db.Query() // 可能新建连接
- 只能对显式获取的连接执行
db.BeginTx()
、db.Conn()