I am in the process of writing a custom web server and as I test it I am running into several IE related quirks - FF behaves perfectly. The one that is currently bothering me is the way IE decides to spawn multiple threads to get the components of an HTML file (I mean CSS, JS, PNG etc).

I wouldn't particularly mind this but it seems to be so wholly inconsistent about the way it does this - sometimes, it is all done out of one single thread while at other times it opens multiple connections (I assume using multiple threads). Curiously enough, if I watch the HTTP traffic (I use HTTP Analyzer by IEInspector) it behaves in a much more predictable way.

Could anybody shed any light on these mysteries?