Idle connections can be closed by the db.SetConnMaxLifetime() . If you want to close idle connections more rapidly, you can use db.SetConnMaxIdleTime() since Go ...
確定! 回上一頁