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/TunnelUtils.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/TunnelUtils.h')
-rw-r--r-- | netwerk/protocol/http/TunnelUtils.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/netwerk/protocol/http/TunnelUtils.h b/netwerk/protocol/http/TunnelUtils.h index 20cfaf7ee..7e491a0d7 100644 --- a/netwerk/protocol/http/TunnelUtils.h +++ b/netwerk/protocol/http/TunnelUtils.h @@ -121,7 +121,8 @@ public: nsresult CommitToSegmentSize(uint32_t size, bool forceCommitment) override; nsresult GetTransactionSecurityInfo(nsISupports **) override; nsresult NudgeTunnel(NudgeTunnelCallback *callback); - nsresult SetProxiedTransaction(nsAHttpTransaction *aTrans); + MOZ_MUST_USE nsresult SetProxiedTransaction(nsAHttpTransaction *aTrans, + nsAHttpTransaction *aSpdyConnectTransaction = nullptr); void newIODriver(nsIAsyncInputStream *aSocketIn, nsIAsyncOutputStream *aSocketOut, nsIAsyncInputStream **outSocketIn, @@ -153,6 +154,7 @@ private: private: RefPtr<nsAHttpTransaction> mTransaction; + nsWeakPtr mWeakTrans; // SpdyConnectTransaction * nsCOMPtr<nsISupports> mSecInfo; nsCOMPtr<nsITimer> mTimer; RefPtr<NudgeTunnelCallback> mNudgeCallback; |