Is it possible to configure a timeout for releasing sleep connections?

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 请问可以配置一段时间释放sleep连接吗?

| username: TiDBer_Y2d2kiJh

[TiDB Usage Environment] Production Environment
[TiDB Version] v5.4.0
[Reproduction Path] After connecting for a period of time, there are many sleep states. Can the idle connection be configured to disconnect after a certain period of time?
[Encountered Problem: Problem Phenomenon and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachment: Screenshot/Log/Monitoring]

| username: 裤衩儿飞上天 | Original post link

Reference: System Variables | PingCAP Documentation Center