nsCOMPtr<nsITransportRequest> trequest(do_QueryInterface(request)); if (trequest) { nsCOMPtr<nsITransport> trans; trequest->GetTransport(getter_AddRefs(trans)); nsCOMPtr<nsISocketTransport> sTrans (do_QueryInterface(trans)); if (sTrans) sTrans->SetReuseConnection(PR_FALSE); }
DataRequestForwarder::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult statusCode){    PR_LOG(gFTPLog, PR_LOG_DEBUG, ("(%x) DataRequestForwarder OnStopRequest [status=%x]\n", this, statusCode));     if (mListener)        return mListener->OnStopRequest(this, ctxt, statusCode);        return NS_OK;}