Connection Lifetime=0
在连接字符串中到底意味着什么?
最佳答案
根据我的研究,我相信 Myra是其他答案中最接近的。
它与连接超时不相同。
改为查看来自 this 的伪代码文章:
On SqlConnection.Close
Check if time the connection has been open is greater than Connection Lifetime if it is, throw the connection away
Else Put connection on the pool
同一篇文章解释了为什么您很少想使用此属性(以及您可能会使用的情况)。
请注意,它已重命名为“负载平衡超时”,以试图根据上述文章阐明其行为。
关于.net - MySql 连接字符串中的连接生命周期=0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1233488/