加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

ASP 服务器超时 Timeout 处理

发布时间:2020-12-16 09:28:10 所属栏目:asp.Net 来源:网络整理
导读:ASP 服务器超时 Timeout 处理 ASP 服务器超时 Timeout 处理 影响服务器产生超时的设定大致有: 1. Server.ScriptTimeout 2. Connection对象的CommandTimeOut属性 3. Command对象的CommandTimeOut属性 4. IE浏览器的设定 Server.ScriptTimeout 默认值是90秒 要

ASP 服务器超时 Timeout 处理


ASP 服务器超时 Timeout 处理

影响服务器产生超时的设定大致有:

1. Server.ScriptTimeout

2. Connection对象的CommandTimeOut属性

3. Command对象的CommandTimeOut属性

4. IE浏览器的设定

Server.ScriptTimeout

默认值是90秒

要增大它,在你的asp文件中加一句,如下:

Server.ScriptTimeout=999 ‘单位(秒)

Connection和Command CommandTimeOut

默认是30秒

? 要增大它,如下:

con.CommandTimeOut = 999 ‘单位(秒)

如果设为零,将无限等待,没有timeout限制

IE也有个超时设定

5分钟从服务器得不到数据,也超时

解决方法: (原文请参照微软KB中的Q181050)

1. IE要4.01 sp1以上版本

2. 在注册表中HKEY_CURRENT_USERSoftwareMicrosoft

WindowsCurrentVersionInternet Settings中加一DWORD类型

ReceiveTimeout,值设为比如8个9

3. restart computer

原文:大专栏 ?ASP 服务器超时 Timeout 处理

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读