IIS 5.1 on XP Classic ASP appears to be in single threaded mode

房东的猫 提交于 2019-12-23 18:13:19

问题


I do'nt have script debugging enabled on IIS 5.1 on XP, but the Classic ASP applications appear to be running in single threaded mode. One page must finish loading before another can load.

Any ideas???


回答1:


Mike is right, Classic ASP responses are returned in order of receipt (not simultaneously) when being requested by the same session.

If you need to do two requests at the same time in the same browser (as your web visitors might need to do if say one of the requests is for an image or AJAX) you can disable session state for a page request using <%@ EnableSessionState=False %> at the top of your ASP page. For more information, see: http://support.microsoft.com/kb/244465

When you do this however, you don't have access to the Session object, so you will need to consider some other way of identifying the user in such pages (e.g. a token on the query string, IP address, custom implemented session state using the Cookie object and a database, etc)

If you aren't using the Session object at all, it can be disabled in IIS all together, also explained at http://support.microsoft.com/kb/244465




回答2:


Make sure that you run this tests from different clients. Asp will serialize the pages when they are being requested by the same session. To test multiple simultanious access you need two browsers that are not using the same session. I find this easiest to do by using 2 different types of browsers at the same time like firefox and safari.



来源:https://stackoverflow.com/questions/3581040/iis-5-1-on-xp-classic-asp-appears-to-be-in-single-threaded-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!