Bug 1703933 - Avoid racing on mIsHttp3Used, r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D130006
This commit is contained in:
Kershaw Chang 2021-11-01 11:51:31 +00:00
Родитель fc75050c26
Коммит 541d91f0ba
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -390,6 +390,7 @@ class nsHttpTransaction final : public nsAHttpTransaction,
Atomic<uint32_t> mCapsToClear{0};
Atomic<bool, ReleaseAcquire> mResponseIsComplete{false};
Atomic<bool, ReleaseAcquire> mClosed{false};
Atomic<bool, Relaxed> mIsHttp3Used{false};
// True iff WriteSegments was called while this transaction should be
// throttled (stop reading) Used to resume read on unblock of reading. Conn
@ -420,8 +421,6 @@ class nsHttpTransaction final : public nsAHttpTransaction,
bool mContentDecodingCheck{false};
bool mDeferredSendProgress{false};
bool mWaitingOnPipeOut{false};
bool mIsHttp3Used = false;
bool mDoNotRemoveAltSvc{false};
// mClosed := transaction has been explicitly closed