Talk to [EMAIL PROTECTED]


Eric Plaster wrote:

> Darin Fisher wrote:
> 
>>  
>> The problem is that you do not have an event loop to drive HTTP.      
>> There are two options, either you have to create an event loop or you 
>> should set the nsIHTTPChannel::openInputStreamHasEventQueue attribute 
>> to FALSE.  This will cause anotherthread to be spawned for internal 
>> event processing.  Beware, however, thatHTTP is not thread safe, so 
>> this solution will not work for multiple overlappeddownloads.  Make 
>> sure that there are no other threads trying to access HTTP.   
>> Eventually, this poor-man's synchronous implementation will be 
>> replacedby a true synchronous implementation (single threaded, no 
>> event queue requirement,etc.).
>> 
>> Darin
>>  
>> 
> Thanks for the heads up.  How do I go about doing this in js?  I've 
> been looking for an example, and haven't had much luck...
> 
> -- 
> ----
> Eric Plaster                    Universal Talkware Corp
> Senior Software Engineer        (612)843-6711
> [EMAIL PROTECTED]            http://www.talkware.net
>  



Reply via email to