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

   NextHopRoundRobin.cc
   ```
   148    } else { // if not available, check to see if it can be retried.  If 
so, set the retry flag and temporairly mark it as
   149             // available.
   150      _now == 0 ? _now = time(nullptr) : _now = now;
        
   CID 1518590 (#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.
   151      if (((result->wrap_around) || (cur_host->failedAt + retry_time) < 
static_cast<unsigned>(_now)) &&
   152          host_stat == TS_HOST_STATUS_UP) {
   153        // Reuse the parent
   154        parentUp    = true;
   155        parentRetry = true;
   156        NH_Debug(NH_DEBUG_TAG, "[%" PRIu64 "]  NextHop marked for retry 
%s:%d", sm_id, cur_host->hostname.c_str(),
   157                 
host_groups[cur_grp_index][cur_hst_index]->getPort(scheme));
   158      } else { // not retryable or available.
   159        parentUp = false;
   160      }
   161    }
   ```


-- 
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