Changeset 965


Ignore:
Timestamp:
Feb 18, 2007 12:10:00 AM (12 years ago)
Author:
bennylp
Message:

Minor change in resolver: added current TTL value when entry is picked up from the cache

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/resolver.c

    r783 r965  
    666666            /* Log */ 
    667667            PJ_LOG(5,(resolver->name.ptr,  
    668                       "Picked up DNS %s record for %.*s in cache", 
     668                      "Picked up DNS %s record for %.*s from cache, ttl=%d", 
    669669                      pj_dns_get_type_name(type), 
    670                       (int)name->slen, name->ptr)); 
     670                      (int)name->slen, name->ptr, 
     671                      (int)(cache->expiry_time.sec - now.sec))); 
    671672 
    672673            /* Map DNS Rcode in the response into PJLIB status name space */ 
Note: See TracChangeset for help on using the changeset viewer.