fixed to track changes to nsIInputStream and nsIPipe. a=r=(not built)

This commit is contained in:
dmose%mozilla.org 2000-08-22 22:17:44 +00:00
Родитель d116e27c2c
Коммит 4fccb8304b
1 изменённых файлов: 4 добавлений и 11 удалений

Просмотреть файл

@ -647,18 +647,11 @@ nsLDAPChannel::AsyncRead(nsIStreamListener* aListener,
// get a new pipe, propagating any error upwards
//
rv = NS_NewPipe(getter_AddRefs(mReadPipeIn),
getter_AddRefs(mReadPipeOut));
getter_AddRefs(mReadPipeOut),
NS_PIPE_DEFAULT_SEGMENT_SIZE,
NS_PIPE_DEFAULT_BUFFER_SIZE,
PR_TRUE, PR_FALSE, nsnull);
NS_ENSURE_SUCCESS(rv, rv);
// the side of the pipe used on the main UI thread cannot block
//
NS_ENSURE_SUCCESS(mReadPipeIn->SetNonBlocking(PR_TRUE),
NS_ERROR_UNEXPECTED);
// but the side of the pipe used by the worker thread can block
//
NS_ENSURE_SUCCESS(mReadPipeOut->SetNonBlocking(PR_FALSE),
NS_ERROR_UNEXPECTED);
}
// get an AsyncStreamListener to proxy for mListener, if we're