mWouldBlock = PR_TRUE; }
    NS_IMETHOD Read(char *aBuf, PRUint32 aCount, PRUint32 *aBytesRead) {        NS_PRECONDITION(mSocketFD, "null socket fd");        PRInt32 result = PR_Read(mSocketFD, aBuf, aCount);        LOG(("nsSocketTransport: PR_Read(count=%u) returned %d\n", aCount, result));        nsresult rv = NS_OK;        if (result < 0) {            PRErrorCode code = PR_GetError();            if (PR_WOULD_BLOCK_ERROR == code)                rv = NS_BASE_STREAM_WOULD_BLOCK;            else {                LOG(("nsSocketTransport: PR_Read() failed [error=%x, os_error=%x]\n",                    code, PR_GetOSError()));                rv = NS_ERROR_FAILURE;            }            *aBytesRead = 0;        }        else {            *aBytesRead = result;            mBytesRead += result;        }        return rv;    }