Remove _hasReceivedData

This commit is contained in:
Ryan Huffman 2016-02-29 14:22:49 -08:00
parent 2229e397fa
commit 57a6cbc9dd
2 changed files with 2 additions and 3 deletions

View file

@ -412,7 +412,7 @@ bool Connection::processReceivedSequenceNumber(SequenceNumber sequenceNumber, in
return false;
}
_isReceivingData = _hasReceivedData = true;
_isReceivingData = true;
// mark our last receive time as now (to push the potential expiry farther)
_lastReceiveTime = p_high_resolution_clock::now();
@ -810,7 +810,7 @@ void Connection::resetReceiveState() {
// the _nakInterval need not be reset, that will happen on loss
// clear sync variables
_isReceivingData = _hasReceivedData = false;
_isReceivingData = false;
_connectionStart = p_high_resolution_clock::now();
_acksDuringSYN = 1;

View file

@ -129,7 +129,6 @@ private:
p_high_resolution_clock::time_point _lastReceiveTime; // holds the last time we received anything from sender
bool _isReceivingData { false }; // flag used for expiry of receipt portion of connection
bool _hasReceivedData { false }; // flag used for reset of connection state on second handshake
bool _isActive { true }; // flag used for inactivity of connection
SequenceNumber _initialReceiveSequenceNumber; // Randomized by peer SendQueue on creation, identifies connection during re-connect requests