mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-10 13:54:27 +00:00
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:
parent
1069c88868
commit
34224169dd
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user