Hi Boris,

> Do you get nothing at all?  Or truncated data?  Or an exception?

I wasn't enclosing the read in a try block so far, but when I did:

[Exception... "Component returned failure code: 0x80470007
(NS_BASE_STREAM_WOULD_BLOCK) [nsIBinaryInputStream.readBytes]"
nsresult: "0x80470007 (NS_BASE_STREAM_WOULD_BLOCK)"  location: "JS
frame :: file:///Users/anant/Plan9/web9/js9p/angled/components/sockets.js
:: anonymous :: line 59"  data: no]

Does this mean there is no data available on the socket to read? This
is a result of a read() with a specific number of bytes, and WireShark
shows me that the response does indeed contain a greater amount of
bytes than what I'm trying to read.

> Does using readByteArray instead of readBytes change anything?

I get the same exception.

Thanks & Regards,
--
Anant

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

Reply via email to