зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1380351 - Reschedule HTTP transaction when ClassOfService flags influencing its priority are changed, r=mcmanus
This commit is contained in:
Родитель
f3a8605374
Коммит
2e5b8a7597
|
@ -2278,7 +2278,12 @@ void nsHttpConnectionMgr::OnMsgUpdateClassOfServiceOnTransaction(int32_t arg, AR
|
|||
uint32_t cos = static_cast<uint32_t>(arg);
|
||||
nsHttpTransaction *trans = static_cast<nsHttpTransaction *>(param);
|
||||
|
||||
uint32_t previous = trans->ClassOfService();
|
||||
trans->SetClassOfService(cos);
|
||||
|
||||
if ((previous ^ cos) & (NS_HTTP_LOAD_AS_BLOCKING | NS_HTTP_LOAD_UNBLOCKED)) {
|
||||
Unused << RescheduleTransaction(trans, trans->Priority());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Загрузка…
Ссылка в новой задаче