XML Utility Example #3

[ engine overview | whitefrost.com | Stephen W. Cote ]

This example is a stress test for the pooling and caching features. Both features are enabled in the default configuration. The configured pool size is five (5), and the configured maximum pool size is ten (10). This test tries to make fifteen (15) requests in a row.

When the pooling feature is enabled, the test should fail for the last five requests. When caching and pooling are enabled, the test should be completely successful subsequent tries because the first ten requests were cached. If caching is disabled, then the last five requests should never be successful. When pooling is disabled, all requests should be successful.

Another part of this test is to verify that there are no errors in the client's XmlHttpRequest agent. For example, various versions of MSXML have differences in how the readystatechange event works, and various versions of Mozilla have differences in how the load event is handled.

Pooling Enabled: Caching Enabled: Async Request: Same Document: