Re: Reading a socket from JS?
Axel Hecht <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xpcom |
|---|---|
| Organization | Institute of Mathematics, Section 2 |
| Message-ID | <[email protected]> |
ok,
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
Axel