ASP 服务器超时 Timeout 处理

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秒

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

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 处理


猜你喜欢

转载自www.cnblogs.com/chinatrump/p/11490962.html