Ignore:
Timestamp:
Feb 16, 2012 5:35:25 AM (12 years ago)
Author:
bennylp
Message:

Allow run-time control of automatic switching to TCP when request is larger than 1300 (the PJSIP_DONT_SWITCH_TO_TCP compile time setting) via pjsip_cfg()->endpt.disable_tcp_switch setting. Thanks Johan Lantz for the suggestion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/include/pjsip/sip_config.h

    r3586 r3952  
    8282         */ 
    8383        pj_bool_t disable_rport; 
     84 
     85        /** 
     86         * Disable automatic switching from UDP to TCP if outgoing request 
     87         * is greater than 1300 bytes. See PJSIP_DONT_SWITCH_TO_TCP. 
     88         */ 
     89        pj_bool_t disable_tcp_switch; 
     90 
    8491    } endpt; 
    8592 
     
    252259 * size exceeds the threshold defined in PJSIP_UDP_SIZE_THRESHOLD. 
    253260 * 
     261 * This option can also be controlled at run-time by the \a disable_tcp_switch 
     262 * setting in pjsip_cfg_t. 
     263 * 
    254264 * Default is 0 (no). 
    255265 */ 
Note: See TracChangeset for help on using the changeset viewer.