diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-22 18:41:22 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-22 18:41:22 +0100 |
commit | 3403d5f049bf476a495c30026d5002db0e742887 (patch) | |
tree | 277e1105991597a478467a4fd6c09b30e4935e70 /netwerk/protocol/http/nsHttpConnection.h | |
parent | 34939b2d177be9d397e17d6a16837dd60e6b3906 (diff) | |
download | UXP-3403d5f049bf476a495c30026d5002db0e742887.tar UXP-3403d5f049bf476a495c30026d5002db0e742887.tar.gz UXP-3403d5f049bf476a495c30026d5002db0e742887.tar.lz UXP-3403d5f049bf476a495c30026d5002db0e742887.tar.xz UXP-3403d5f049bf476a495c30026d5002db0e742887.zip |
Close the transaction if PR_Read/PR_Write failed.
When PR_Read/PR_White returns -1, we have to use ErrorAccordingToNSPR
to get the error code.
We need to close the transaction if a real error happens.
Diffstat (limited to 'netwerk/protocol/http/nsHttpConnection.h')
-rw-r--r-- | netwerk/protocol/http/nsHttpConnection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/netwerk/protocol/http/nsHttpConnection.h b/netwerk/protocol/http/nsHttpConnection.h index 08eea1de2..ce7523eb5 100644 --- a/netwerk/protocol/http/nsHttpConnection.h +++ b/netwerk/protocol/http/nsHttpConnection.h @@ -202,7 +202,7 @@ public: static nsresult MakeConnectString(nsAHttpTransaction *trans, nsHttpRequestHead *request, nsACString &result); - void SetupSecondaryTLS(); + void SetupSecondaryTLS(nsAHttpTransaction *aSpdyConnectTransaction = nullptr); void SetInSpdyTunnel(bool arg); // Check active connections for traffic (or not). SPDY connections send a @@ -281,6 +281,7 @@ private: // transaction is open, otherwise it is null. RefPtr<nsAHttpTransaction> mTransaction; RefPtr<TLSFilterTransaction> mTLSFilter; + nsWeakPtr mWeakTrans; // SpdyConnectTransaction * RefPtr<nsHttpHandler> mHttpHandler; // keep gHttpHandler alive |