Changeset 5716


Ignore:
Timestamp:
Dec 18, 2017 9:46:03 AM (6 years ago)
Author:
ming
Message:

Re #2071: Change the default array size to contain the resolved address to 16 (and 32 if IPv6 is enabled) to accommodate more addresses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_config.h

    r5701 r5716  
    803803 * 32 bytes of stack memory. 
    804804 * 
    805  * Default: 8 
     805 * Default: 16 (or 32 if IPv6 support is enabled) 
    806806 * 
    807807 * @see PJSIP_HAS_RESOLVER 
    808808 */ 
    809809#ifndef PJSIP_MAX_RESOLVED_ADDRESSES 
    810 #   define PJSIP_MAX_RESOLVED_ADDRESSES     8 
     810#   if defined(PJ_HAS_IPV6) && PJ_HAS_IPV6 
     811#       define PJSIP_MAX_RESOLVED_ADDRESSES         32 
     812#   else 
     813#       define PJSIP_MAX_RESOLVED_ADDRESSES         16 
     814#   endif 
    811815#endif 
    812816 
Note: See TracChangeset for help on using the changeset viewer.