当前位置:首页 > 服务器技术 > IIS

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

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

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

解决方法:

IIS连接超时与IIS超时非常不同

数据库连接超时是关于建立与DB的连接,从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.


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!