HttpSendRequest in my ActiveX control stops IE sending further HTTP requests

Giganews Newsgroups
Subject: HttpSendRequest in my ActiveX control stops IE sending further HTTP requests
Posted by:  benw…@googlemail.com
Date: Tue, 25 Mar 2008

Hi,

I have a weird problem.... (technical... not personal).

I have an ActiveX control that starts up 2 HTTP streams from the same
web server, one is video, one is metadata. It works great. The ActiveX
control lives inside a web page with a few other links that allow the
user to control things like video format, etc.

My problem is this:

If I have more than 1 stream running (i.e. 2 calls to HttpSendRequest,
2 threads looping round InternetReadFile) then any attempt from the
user side to click on any of the other links has no effect..... until
one of the HTTP streams is stopped. At which point IE sends the
request out and then toddles off to the right place.

I have verified this behavior by sniffing with wireshark.

The server is not bouncing the request - it's that IE never sends it
in the first place. It's almost like IE has serialised its request
behind the 2 I already have outstanding.

Any ideas?

Cheers,
Ben

Replies