printf("ending status=%0x total=%d\n", status, mTotal); if (--mStopCount == 0) gDone = PR_TRUE;
printf("stream closed: status %x\n", status);
    NS_IMETHOD OnStopRequest(nsIChannel *channel, nsISupports *ctxt,                              nsresult status, const PRUnichar *errorMsg) {        printf("ending status=%0x total=%d\n", status, mTotal);        if (--mStopCount == 0)            gDone = PR_TRUE;        return NS_OK;    }