> And how do you know that it is safe to call nsIInputStreamChannel::Cancel() > from the Read() thread?
It's not, unless the Read() thread is the main thread.
> And how do you know that it is safe to call nsIInputStreamC hannel: :Cancel( )
> from the Read() thread?
It's not, unless the Read() thread is the main thread.