Changeset 5437


Ignore:
Timestamp:
Sep 15, 2016 7:03:37 AM (8 years ago)
Author:
nanang
Message:

Misc (re #1945): Updated resolver behaviour to not mark nameserver as bad after responding with PJ_DNS_RCODE_SERVFAIL. Thanks George Joseph for the feedback and the patch.

File:
1 edited

Legend:

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

    r5420 r5437  
    13851385    } 
    13861386 
    1387     if (!pkt || rcode == PJ_DNS_RCODE_SERVFAIL || 
     1387    /* Some nameserver is reported to respond with PJ_DNS_RCODE_SERVFAIL for 
     1388     * missing AAAA record, and the standard doesn't seem to specify that 
     1389     * SERVFAIL should prevent the server to be contacted again for other 
     1390     * queries. So let's not mark nameserver as bad for SERVFAIL response. 
     1391     */ 
     1392    if (!pkt || /* rcode == PJ_DNS_RCODE_SERVFAIL || */ 
    13881393                rcode == PJ_DNS_RCODE_REFUSED || 
    13891394                rcode == PJ_DNS_RCODE_NOTAUTH)  
Note: See TracChangeset for help on using the changeset viewer.