| Dart Home | PowerTCP Web for ActiveX | Custom Development | Reply | PowerTCP Web for ActiveX Topics | Forums |
| Author | Forum: PowerTCP Web for ActiveX Topic: Server only processes one page at a time |
| User455 Posts: 5 Member Since: 05/31/01 |
posted October 5, 2001 2:27 AM Why is it the server can only process one ASP page (containing a Web Control) at a time? That is, if two browsers are running the same page, one is blocked until the other is finished. Shouldn't the 2nd browser create a new instance? Sample ASP script: <% Set Http1 = Server.CreateObject("Dart.Http.1") for i = 1 to 10 Http1.Url = "http://www.yahoo.com/" Http1.Get s Response.Write s next %> |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted October 5, 2001 9:13 AM Hi Ben, The Http control uses wininet.dll, which Microsoft recommends against using in ASP, as it is not multithreaded. This was one of the major reasons we developed the WebAsp control of the Web Enterprise Tool, which can be used successfully in an ASP script. -ken K M Drake Dart Tech Support |
| User455 Posts: 5 Member Since: 05/31/01 |
posted October 5, 2001 10:28 PM Ken, thank you for your response. i tried using the WebASP, but the same thing happens. fyi, the Web Control is used locally within a function, and torn down after completion. the function is called several times within a loop in my ASP page. there is additional processing between calls (no other blocking calls), so shouldn't that give other instances of this script the chance to run? could it be that the first browser (that calls this page) fills up the tcp queue and any new calls to the script must wait for the first to finish? thanks in advance, ben |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted October 8, 2001 10:09 AM Hi Ben, Perhaps it has something to do with your blocking loop. When I access the simple script below with several clients, it seems to work ok. -ken <% Dim webasp1 set webasp1 = Server.CreateObject("Dart.WebAsp.1") webasp1.Request.url = "www.dart.com" webasp1.Get Response.Write webasp1.Response.body.readstring set webasp1 = nothing %> |
| Reply | PowerTCP Web for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|