Re: Mozilla streaming on a background thread

Boris Zbarsky <[email protected]> Thu, 18 Aug 2011 09:01:08 -0400
Newsgroups gmane.comp.mozilla.devel.embedding
Message-ID <[email protected]>
On 8/18/11 7:50 AM, Fizitzky, Annie wrote:
> So, I opened a new thread (by calling NS_NewThread) and executed
> nsIHttpChannel::asyncOpen() on that thread.

The nsIChannel APIs can only be used from the main thread.  So you can't 
do what you're trying to do.

> It seems that the nsIHttpChannel doesn't support multi-threaded
> streaming.

That's correct.

> Are there any other thread-safe versions of these streaming interfaces?

There are not yet.

-Boris