mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-23 00:47:31 +09:00
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.
This commit is contained in:
parent
df7640136e
commit
ad188bf3c0
4 changed files with 51 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue