Bug #14680...migrating this bug from the M10 branch. make input and output stream for the converter pipe non-blocking.

r=ducarroz
This commit is contained in:
mscott%netscape.com 1999-10-04 01:01:48 +00:00
parent 1069c88868
commit 34224169dd

View File

@ -478,6 +478,12 @@ NS_IMETHODIMP nsStreamConverter::Init(nsIURI *aURI, nsIStreamListener * aOutList
NS_STREAM_CONVERTER_SEGMENT_SIZE,
NS_STREAM_CONVERTER_BUFFER_SIZE);
if (NS_SUCCEEDED(rv))
{
mInputStream->SetNonBlocking(PR_TRUE);
mOutputStream->SetNonBlocking(PR_TRUE);
}
// initialize our emitter
if (NS_SUCCEEDED(rv) && mEmitter)
{