且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何处理脚本超时错误在传统的ASP?

更新时间:2023-01-17 09:19:37

您根本无法创建具有通过15分钟朝不保夕的HTTP请求的应用程序。这只是注定失败不管。你应该让人们要求的报告,在后台生成,并通知用户该报告仍在进行中/或者通过电子邮件和/或队列准备好了。

You simply cannot create an app that has HTTP requests that hang by a thread for 15 minutes. It's just destined for failure no matter what. You should allow people to request a report, generate it in the background and notify the user the report is still in progress/ready by either email and/or queue.

要甚至支持这种你需要修改用户的注册表:
http://support.microsoft.com/kb/813827

To even support this you'd need to edit the user's registry: http://support.microsoft.com/kb/813827

这只是不是一个好的设计。

It's just not a good design.