Re: Reading a socket from JS?

Dean Edmonds <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Axel Hecht wrote:
>
> nsScriptableInputStream calls Available on the inputstream,
> which is
> 
> NS_IMETHODIMP
> nsSocketBIS::Available(PRUint32 *aCount)
> {
>     return NS_ERROR_NOT_IMPLEMENTED;
> }
> 
> so that bails. I wonder which of the two should fix that.
> 
> nsScriptableInputStream could probably fail gracefully on a
> NS_ERROR_NOT_IMPLEMENTED and alloc the full amount of memory instead of
> count = PR_MIN(count, aCount);
> 
> There should be something in bugzilla about this. Like, file it if there
> isn't

Yup, there was, and I added your suggestion to it.

Thanx for the help.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.