bug 752648 - backout patch for breaking cert override dialog r=backout

This commit is contained in:
Patrick McManus 2012-05-10 13:11:10 -04:00
parent f8c002b1a2
commit 4cd96ac9ae

View File

@ -309,13 +309,8 @@ nsHttpConnection::EnsureNPNComplete()
PRUint32 count = 0;
rv = mSocketOut->Write("", 0, &count);
if (NS_FAILED(rv) && rv != NS_BASE_STREAM_WOULD_BLOCK) {
LOG(("nsHttpConnection::EnsureNPNComplete %p socket write failed "
"with result %X\n", this, rv));
mSocketOutCondition = rv;
if (NS_FAILED(rv) && rv != NS_BASE_STREAM_WOULD_BLOCK)
goto npnComplete;
}
return false;
}
@ -1252,14 +1247,7 @@ nsHttpConnection::OnSocketWritable()
LOG((" writing transaction request stream\n"));
mProxyConnectInProgress = false;
if (NS_SUCCEEDED(mSocketOutCondition) ||
mSocketOutCondition == NS_BASE_STREAM_WOULD_BLOCK) {
rv = mTransaction->ReadSegments(this, nsIOService::gDefaultSegmentSize, &n);
}
else {
rv = mSocketOutCondition;
}
rv = mTransaction->ReadSegments(this, nsIOService::gDefaultSegmentSize, &n);
}
LOG((" ReadSegments returned [rv=%x read=%u sock-cond=%x]\n",