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

   NextHopHealthStatus.cc
   ```
   130    } else {
   131      // if the last failure was outside the retry window, set the 
failcount to 1 and failedAt to now.
   132      { // lock guard
   133        std::lock_guard<std::mutex> lock(h->_mutex);
        
   CID 1518604 (#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.
   134        if ((h->failedAt.load() + retry_time) < 
static_cast<unsigned>(_now)) {
   135          new_fail_count = h->failCount = 1;
   136          h->failedAt                   = _now;
   137        } else {
   138          new_fail_count = h->failCount += 1;
   139        }
   140      } // end of lock_guard
   141      NH_Debug(NH_DEBUG_TAG, "[%" PRId64 "] Parent fail count increased 
to %d for %s", sm_id, new_fail_count, h->hostname.c_str());
   142    }
   ```


-- 
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: issues-unsubscr...@trafficserver.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to