Hi Boris, Christian,

Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> But are you calling the read() too early, before the response is received?

Christian Biesinger <[EMAIL PROTECTED]> wrote:
> Yes. If you want the read methods to wait until bytes are available
> instead of immediately returning when they are not, you need to pass
> Components.interfaces.nsITransport.OPEN_BLOCKING as the first argument
> to openInputStream.

This works like a charm!

However, like Boris mentioned earlier, I would be better off moving
the read() call into the channel implementation rather than doing all
this in newChannel().

Thanks for the all the help; I'm having a great time developing my
first extension :)

--
Anant

_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to