mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Bug 1606864 - Make mDoNotRetryToConnect atomic. r=decoder,dragana a=RyanVM
Bug 1712671 - Make nsSocketTransport2::m{Input/Output}StreamClosed atomic. r=kershaw,decoder a=RyanVM
This commit is contained in:
parent
1920aae3dc
commit
d025defb98
1 changed files with 4 additions and 3 deletions
|
|
@ -306,6 +306,9 @@ private:
|
|||
uint16_t SocketPort() { return (!mProxyHost.IsEmpty() && !mProxyTransparent) ? mProxyPort : mPort; }
|
||||
const nsCString &SocketHost() { return (!mProxyHost.IsEmpty() && !mProxyTransparent) ? mProxyHost : mHost; }
|
||||
|
||||
Atomic<bool> mInputClosed{true};
|
||||
Atomic<bool> mOutputClosed{true};
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// members accessible only on the socket transport thread:
|
||||
// (the exception being initialization/shutdown time)
|
||||
|
|
@ -314,8 +317,6 @@ private:
|
|||
// socket state vars:
|
||||
uint32_t mState; // STATE_??? flags
|
||||
bool mAttached;
|
||||
bool mInputClosed;
|
||||
bool mOutputClosed;
|
||||
|
||||
// The platform-specific network interface id that this socket
|
||||
// associated with.
|
||||
|
|
@ -455,7 +456,7 @@ private:
|
|||
int32_t mKeepaliveRetryIntervalS;
|
||||
int32_t mKeepaliveProbeCount;
|
||||
|
||||
bool mDoNotRetryToConnect;
|
||||
Atomic<bool> mDoNotRetryToConnect{false};
|
||||
};
|
||||
|
||||
} // namespace net
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue