Changeset 1346


Ignore:
Timestamp:
Jun 7, 2007 3:40:19 PM (12 years ago)
Author:
bennylp
Message:

Ticket #325: More tunable settings in DNS resolver

Location:
pjproject/trunk/pjlib-util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/include/pjlib-util/resolver.h

    r974 r1346  
    194194    unsigned    cache_max_ttl;  /**< Maximum TTL for cached responses. If the 
    195195                                     value is zero, caching is disabled.    */ 
     196    unsigned    good_ns_ttl;    /**< See #PJ_DNS_RESOLVER_GOOD_NS_TTL       */ 
     197    unsigned    bad_ns_ttl;     /**< See #PJ_DNS_RESOLVER_BAD_NS_TTL        */ 
    196198} pj_dns_settings; 
     199 
     200/** 
     201 * Set default values to the DNS settings. 
     202 * 
     203 * @param s         The DNS settings to be initialized. 
     204 */ 
     205PJ_DECL(void) pj_dns_settings_default(pj_dns_settings *s); 
    197206 
    198207 
  • pjproject/trunk/pjlib-util/src/pjlib-util/srv_resolver.c

    r1239 r1346  
    128128 
    129129    PJ_LOG(5, (query_job->objname,  
    130                "Starting async DNS %s query_job: target=%.*", 
     130               "Starting async DNS %s query_job: target=%.*s", 
    131131               pj_dns_get_type_name(query_job->dns_state), 
    132132               (int)target_name.slen, target_name.ptr)); 
     
    186186         
    187187        ++query_job->srv_cnt; 
     188    } 
     189 
     190    if (query_job->srv_cnt == 0) { 
     191        PJ_LOG(4,(query_job->objname,  
     192                  "Could not find SRV record in DNS answer!")); 
     193        return; 
    188194    } 
    189195 
Note: See TracChangeset for help on using the changeset viewer.