我对这两个术语感到困惑我想知道连接字符串中的超时和 IIS 配置中的超时有什么区别
data source=xxxx;Initial Catalog=Test;User=yy;Password=yyyy;Timeout=10
最佳答案
DB 连接超时与 IIS 超时有很大不同
数据库连接超时是关于建立与数据库的连接,来自MSDN SqlConnection.ConnectionTimeout
Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error.
来自 MSDN about Connection Timeout
Connection timeouts help reduce the amount of memory resources that are consumed by idle connections. Time-out settings also allow you to specify how long server resources are allocated to specific tasks or clients.
关于c# - IIS 连接超时和连接字符串超时属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16935601/