diff options
author | Moonchild <moonchild@palemoon.org> | 2020-12-16 07:42:37 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-12-16 07:42:37 +0000 |
commit | 810c2bf8080da2bc8ec4efb05223fea31817944b (patch) | |
tree | 1c0dfd0363791da1332e4df0d63fb11a489dd7c5 /netwerk/base/nsSocketTransportService2.h | |
parent | dabdec3b3ae9cd920e9fe75622a10ce290552941 (diff) | |
parent | 203be74ffe19ea3010e389cee32077ec6c7a173a (diff) | |
download | UXP-RC_20201216.tar UXP-RC_20201216.tar.gz UXP-RC_20201216.tar.lz UXP-RC_20201216.tar.xz UXP-RC_20201216.zip |
Merge branch 'redwood' into releaseRELBASE_20201218RC_20201216
Diffstat (limited to 'netwerk/base/nsSocketTransportService2.h')
-rw-r--r-- | netwerk/base/nsSocketTransportService2.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/netwerk/base/nsSocketTransportService2.h b/netwerk/base/nsSocketTransportService2.h index 9360dd905..484dbe098 100644 --- a/netwerk/base/nsSocketTransportService2.h +++ b/netwerk/base/nsSocketTransportService2.h @@ -116,9 +116,6 @@ public: // Returns true if keepalives are enabled in prefs. bool IsKeepaliveEnabled() { return mKeepaliveEnabledPref; } - - // Returns true if socket timeout clamping is enabled in prefs. - bool IsSocketTimeoutClamped() { return mClampSocketTimeout; } PRIntervalTime MaxTimeForPrClosePref() {return mMaxTimeForPrClosePref; } protected: @@ -256,13 +253,14 @@ private: int32_t mKeepaliveProbeCount; // True if TCP keepalive is enabled globally. bool mKeepaliveEnabledPref; - // True if socket polling should be clamped. - bool mClampSocketTimeout; Atomic<bool> mServingPendingQueue; Atomic<int32_t, Relaxed> mMaxTimePerPollIter; Atomic<PRIntervalTime, Relaxed> mMaxTimeForPrClosePref; + Atomic<bool, Relaxed> mSleepPhase; + nsCOMPtr<nsITimer> mAfterWakeUpTimer; + void OnKeepaliveEnabledPrefChange(); void NotifyKeepaliveEnabledPrefChange(SocketContext *sock); |