Changeset 1360


Ignore:
Timestamp:
Jun 11, 2007 4:59:41 PM (12 years ago)
Author:
bennylp
Message:

Ticket #332: Enlarge default buffer size for caching DNS responses from 512 to 1000 bytes

File:
1 edited

Legend:

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

    r1031 r1360  
    3636 * DNS CONFIGURATION 
    3737 */ 
     38 
     39/** 
     40 * Maximum number of IP addresses in DNS A response. 
     41 */ 
     42#ifndef PJ_DNS_MAX_IP_IN_A_REC 
     43#   define PJ_DNS_MAX_IP_IN_A_REC   8 
     44#endif 
     45 
     46 
     47/** 
     48 * Maximum server address entries per one SRV record 
     49 */ 
     50#ifndef PJ_DNS_SRV_MAX_ADDR 
     51#   define PJ_DNS_SRV_MAX_ADDR      8 
     52#endif 
     53 
    3854 
    3955/** 
     
    163179 * (#pj_dns_packet_dup()) is also capable of performing name compressions. 
    164180 * 
    165  * Default: 512 (as a broad guidance, 400 is good for 4 SRV entries). 
     181 * Default: 1000 (as a broad guidance, 400 is good for 4 SRV entries). 
    166182 */ 
    167183#ifndef PJ_DNS_RESOLVER_RES_BUF_SIZE 
    168 #   define PJ_DNS_RESOLVER_RES_BUF_SIZE             512 
     184#   define PJ_DNS_RESOLVER_RES_BUF_SIZE             1000 
    169185#endif 
    170186 
Note: See TracChangeset for help on using the changeset viewer.