mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 726366 part 2 - fix tunnel spdy over http proxy initial settings race r=honzab
This commit is contained in:
parent
7d2bdf959b
commit
8864f747f9
@ -563,9 +563,8 @@ nsSocketOutputStream::Write(const char *buf, PRUint32 count, PRUint32 *countWrit
|
||||
|
||||
*countWritten = 0;
|
||||
|
||||
// A write of 0 bytes can be used to force the initial SSL handshake.
|
||||
if (count == 0 && mByteCount)
|
||||
return NS_OK;
|
||||
// A write of 0 bytes can be used to force the initial SSL handshake, so do
|
||||
// not reject that.
|
||||
|
||||
PRFileDesc* fd = nsnull;
|
||||
{
|
||||
|
@ -870,6 +870,7 @@ nsHttpConnection::OnHeadersAvailable(nsAHttpTransaction *trans,
|
||||
LOG(("ProxyStartSSL failed [rv=%x]\n", rv));
|
||||
}
|
||||
mCompletedProxyConnect = true;
|
||||
mProxyConnectInProgress = false;
|
||||
rv = mSocketOut->AsyncWait(this, 0, 0, nsnull);
|
||||
// XXX what if this fails -- need to handle this error
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "mSocketOut->AsyncWait failed");
|
||||
|
Loading…
Reference in New Issue
Block a user