Return proper error if the nss layer encounters an error on the http

tunnel.
This commit is contained in:
wolfbeast 2019-03-22 20:11:09 +01:00 committed by Roy Tam
commit 0363b2d358
3 changed files with 30 additions and 26 deletions

View file

@ -535,16 +535,16 @@ npnComplete:
return true;
}
void
nsresult
nsHttpConnection::OnTunnelNudged(TLSFilterTransaction *trans)
{
MOZ_ASSERT(PR_GetCurrentThread() == gSocketThread);
LOG(("nsHttpConnection::OnTunnelNudged %p\n", this));
if (trans != mTLSFilter) {
return;
return NS_OK;
}
LOG(("nsHttpConnection::OnTunnelNudged %p Calling OnSocketWritable\n", this));
OnSocketWritable();
return OnSocketWritable();
}
// called on the socket thread