c# - IIS 连接超时和连接字符串超时属性

标签 c# asp.net iis

我对这两个术语感到困惑我想知道连接字符串中的超时和 IIS 配置中的超时有什么区别

data source=xxxx;Initial Catalog=Test;User=yy;Password=yyyy;Timeout=10

enter image description here

最佳答案

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/

相关文章:

asp.net - 适用于 ASP.NET 和 MVC3 的自定义身份验证提供程序

IIS 日志 : sc bytes

c# - 如何在网站中部署 win32 dll 以便它可以在 activex 对象中使用?

c# - UWP - 如何从 http 获取文件 (xml)?

c# - WinForms 中的 header 控件 - 有这样的东西吗?

asp.net - jquery:从自动完成填充选择列表?

javascript - JQuery-Ajax : encodeUriComponent not working (EncodeUri does)

c# - 安全地为 IIS 加载服务

javascript - 从其他页面重定向时警报未执行

c# - 根据 T 返回具有不同内容的 List<T>