Changeset 4774


Ignore:
Timestamp:
Feb 28, 2014 10:14:24 AM (10 years ago)
Author:
bennylp
Message:

Fixed #1719: Bug in DNS SRV/RFC 3263 server selection

File:
1 edited

Legend:

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

    r4537 r4774  
    255255 
    256256    /* Second pass: 
    257      *  pick one host among hosts with the same priority, according 
    258      *  to its weight. The idea is when one server fails, client should 
    259      *  contact the next server with higher priority rather than contacting 
    260      *  server with the same priority as the failed one. 
     257     *  Order the entry in a list. 
    261258     * 
    262259     *  The algorithm for selecting server among servers with the same 
     
    299296 
    300297            /* Remove all other entries (of the same priority) */ 
     298            /* Don't need to do this. 
     299             * See https://trac.pjsip.org/repos/ticket/1719 
    301300            while (count > 1) { 
    302301                pj_array_erase(query_job->srv, sizeof(struct srv_target),  
     
    305304                --query_job->srv_cnt; 
    306305            } 
     306            */ 
    307307        } 
    308308    } 
Note: See TracChangeset for help on using the changeset viewer.