maskit opened a new issue, #10336:
URL: https://github.com/apache/trafficserver/issues/10336

   ```
   405        // if the parent is not available check to see if the retry 
window has expired making it available
   406        // for retry.
   407        if (!pRec->available.load() && host_stat == TS_HOST_STATUS_UP) {
   408          _now == 0 ? _now = time(nullptr) : _now = now;
        
   CID 1518607 (#1 of 1): Use of 32-bit time_t (Y2K38_SAFETY)
   1. store_truncates_time_t: A time_t value is stored in an integer with too 
few bits to accommodate it. The expression _now is cast to unsigned int.
   409          if ((pRec->failedAt.load() + retry_time) < 
static_cast<unsigned>(_now)) {
   410            nextHopRetry       = true;
   411            result.last_parent = pRec->host_index;
   412            result.last_lookup = pRec->group_index;
   413            result.retry       = nextHopRetry;
   414            result.result      = PARENT_SPECIFIED;
   415            NH_Debug(NH_DEBUG_TAG, "[%" PRIu64 "] next hop %s is now 
retryable", sm_id, pRec->hostname.c_str());
   416            break;
   417          }
   418        }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to