mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-07-29 03:41:11 +03:00
Minor clean up
Summary: Minor clean up Reviewed By: mjoras Differential Revision: D35510673 fbshipit-source-id: fcd6982dd49a08ac2c9e2148b1cfd5beec9f49dd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6144ea1ded
commit
be0cd3dacc
@ -245,7 +245,7 @@ SchedulingResult FrameScheduler::scheduleFramesForPacket(
|
|||||||
rstWritten = rstScheduler_->writeRsts(wrapper);
|
rstWritten = rstScheduler_->writeRsts(wrapper);
|
||||||
}
|
}
|
||||||
// Long time ago we decided RST has higher priority than Acks.
|
// Long time ago we decided RST has higher priority than Acks.
|
||||||
if (ackScheduler_ && ackScheduler_->hasPendingAcks()) {
|
if (hasPendingAcks()) {
|
||||||
if (cryptoDataWritten || rstWritten) {
|
if (cryptoDataWritten || rstWritten) {
|
||||||
// If packet has non ack data, it is subject to congestion control. We
|
// If packet has non ack data, it is subject to congestion control. We
|
||||||
// need to use the wrapper/
|
// need to use the wrapper/
|
||||||
@ -317,8 +317,7 @@ void FrameScheduler::writeNextAcks(PacketBuilderInterface& builder) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool FrameScheduler::hasData() const {
|
bool FrameScheduler::hasData() const {
|
||||||
return (ackScheduler_ && ackScheduler_->hasPendingAcks()) ||
|
return (hasPendingAcks()) || hasImmediateData();
|
||||||
hasImmediateData();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FrameScheduler::hasPendingAcks() const {
|
bool FrameScheduler::hasPendingAcks() const {
|
||||||
|
Reference in New Issue
Block a user