summaryrefslogtreecommitdiffstats
path: root/netwerk/protocol/http
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-11 07:51:19 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-02-11 07:51:19 +0100
commit651b0dd97fa985a89b8321b8dad0dbc811aababf (patch)
tree27d5a72eba88180bf4523ba76b4d76abebaaa44b /netwerk/protocol/http
parentbb9e155841de0e0fce81183a2fe6471f5c4df288 (diff)
downloadUXP-651b0dd97fa985a89b8321b8dad0dbc811aababf.tar
UXP-651b0dd97fa985a89b8321b8dad0dbc811aababf.tar.gz
UXP-651b0dd97fa985a89b8321b8dad0dbc811aababf.tar.lz
UXP-651b0dd97fa985a89b8321b8dad0dbc811aababf.tar.xz
UXP-651b0dd97fa985a89b8321b8dad0dbc811aababf.zip
Bug 1344890 - h2 tls 1.3 early data problem with https://echo.filippo.io/foo
Diffstat (limited to 'netwerk/protocol/http')
-rw-r--r--netwerk/protocol/http/nsHttpTransaction.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/netwerk/protocol/http/nsHttpTransaction.cpp b/netwerk/protocol/http/nsHttpTransaction.cpp
index aad82e164..c70c37308 100644
--- a/netwerk/protocol/http/nsHttpTransaction.cpp
+++ b/netwerk/protocol/http/nsHttpTransaction.cpp
@@ -2491,6 +2491,7 @@ nsHttpTransaction::Do0RTT()
nsresult
nsHttpTransaction::Finish0RTT(bool aRestart, bool aAlpnChanged /* ignored */)
{
+ LOG(("nsHttpTransaction::Finish0RTT %p %d %d\n", this, aRestart, aAlpnChanged));
MOZ_ASSERT(m0RTTInProgress);
m0RTTInProgress = false;
if (aRestart) {
@@ -2502,6 +2503,10 @@ nsHttpTransaction::Finish0RTT(bool aRestart, bool aAlpnChanged /* ignored */)
} else {
return NS_ERROR_FAILURE;
}
+ } else if (!mConnected) {
+ // this is code that was skipped in ::ReadSegments while in 0RTT
+ mConnected = true;
+ mConnection->GetSecurityInfo(getter_AddRefs(mSecurityInfo));
}
return NS_OK;
}