123
Senior Member
After spending a lot of time revising the MiniBrowser module, I encountered, on many occasions, what appeared to be a random bug. Well it is not random and it can be reproduced. It is a nasty one and it imposes an unwelcome limitation. This problem is also evident in all modules derived from MiniBrowser like the xBrowser and iPhone modules.
Here's how it manifests itself:
instead of this:
and, for the most part, do not generate a unique Web Request each time the Power button is clicked. So far, I haven't seen any downside to eliminating the unique identifier.
I'm really surprised no one has ever noticed this problem. The only explanation is that few people use the web-interfaces rendered by MiniBrowser/xBrowser/iPhone and, when they do, they do not use them extensively (i.e. just a few clicks).
Is Jim still around? Maybe he can shed some light on what, if anything, can be done about this problem. Perhaps there's a way to increase the Request limit and have the Requests expire promptly or some way of coding the URLs so that they don't generate so many unique requests.
PS
AutomationBrowser does not have this limitation and appears to work differently. Start http://localhost and you'll get eleven Web Requests where the eleventh one is for SYSConnector. Click away to your heart's content and the number of Web Requests remains unchanged.
Here's how it manifests itself:
- Run http://locahost/ppc. This start a Web Session that relies on the MiniBrowser module.
- After successfully navigating through several links (probably more than a dozen), you'll click one (it can be any link) and the browser sits and waits for a response that never arrives. The only remedy is to close the browser window and start again with a new browser window (i.e. start a fresh Web Session).
- Premise's web server appears to be limited to handling approximately ten concurrent Web Requests.
- When you start a Web Session it will generate one Web Request for each Location object.
- Each time you toggle a light's Power button, it generates a new Web Request.
- After it reaches ten unique requests it ignores all others. I don't know how to increase or eliminate this threshold.
- In Builder, navigate to WebServer > Sites > Default Web Site
- In the Properties window, enable the Debug property.
- Navigate to WebServer > Sites > Default Web Site > Requests
- Open Internet Explorer and run http://localhost/ppc (or http://localhost:86/ppc)
- You'll notice that the Requests folder now has a few Web Requests (if not, ensure Debug is enabled and restart Premise Server).
- Click a few links in the browser and watch what generates more Web Requests.
- Toggling a light's Power button will generate Web Requests.
- After ten Web Requests are logged, all subsequent requests are ignored.
Code:
http://localhost:86/sys/%7B38DDEFB2-4FFC-4100-AAE1-067F0484895F%7D?d??mbTogglePower
Code:
http://localhost:86/sys/%7B38DDEFB2-4FFC-4100-AAE1-067F0484895F%7D?d??mbTogglePower(ID794E6B36265E4888B872929A43C523B1)
I'm really surprised no one has ever noticed this problem. The only explanation is that few people use the web-interfaces rendered by MiniBrowser/xBrowser/iPhone and, when they do, they do not use them extensively (i.e. just a few clicks).
Is Jim still around? Maybe he can shed some light on what, if anything, can be done about this problem. Perhaps there's a way to increase the Request limit and have the Requests expire promptly or some way of coding the URLs so that they don't generate so many unique requests.
PS
AutomationBrowser does not have this limitation and appears to work differently. Start http://localhost and you'll get eleven Web Requests where the eleventh one is for SYSConnector. Click away to your heart's content and the number of Web Requests remains unchanged.