@@ -1507,21 +1507,19 @@ bool StreamSocket::checkRemoval(std::chrono::steady_clock::time_point now)
1507
1507
const auto durLast =
1508
1508
std::chrono::duration_cast<std::chrono::milliseconds>(now - getLastSeenTime ());
1509
1509
const double bytesPerSecIn = durTotal.count () > 0 ? (double )bytesRcvd () / ((double )durTotal.count () / 1000.0 ) : 0.0 ;
1510
- // / TO Criteria: Violate creation time? (invalid passed now)
1511
- const bool cNow = now < getCreationTime ();
1512
1510
// / TO Criteria: Violate maximum idle (_pollTimeout default 64s)
1513
- const bool cIDLE = _pollTimeout > std::chrono::microseconds::zero () &&
1511
+ const bool isIDLE = _pollTimeout > std::chrono::microseconds::zero () &&
1514
1512
durLast > _pollTimeout;
1515
1513
// / TO Criteria: Violate minimum bytes-per-sec throughput? (_minBytesPerSec default 0, disabled)
1516
- const bool cMinThroughput = _minBytesPerSec > std::numeric_limits<double >::epsilon () &&
1514
+ const bool isMinThroughput = _minBytesPerSec > std::numeric_limits<double >::epsilon () &&
1517
1515
bytesPerSecIn > std::numeric_limits<double >::epsilon () &&
1518
1516
bytesPerSecIn < _minBytesPerSec;
1519
1517
// / TO Criteria: Shall terminate?
1520
- const bool cTermination = SigUtil::getTerminationFlag ();
1521
- if (cNow || cIDLE || cMinThroughput || cTermination )
1518
+ const bool isTermination = SigUtil::getTerminationFlag ();
1519
+ if (isIDLE || isMinThroughput || isTermination )
1522
1520
{
1523
- LOG_WRN (" CheckRemoval: Timeout: {Now " << cNow << " , IDLE " << cIDLE
1524
- << " , MinThroughput " << cMinThroughput << " , Termination " << cTermination << " }, "
1521
+ LOG_WRN (" CheckRemoval: Timeout: {IDLE " << isIDLE
1522
+ << " , MinThroughput " << isMinThroughput << " , Termination " << isTermination << " }, "
1525
1523
<< getStatsString (now) << " , "
1526
1524
<< *this );
1527
1525
if (_socketHandler)
0 commit comments