Changeset 3952
- Timestamp:
- Feb 16, 2012 5:35:25 AM (13 years ago)
- Location:
- pjproject/branches/1.x/pjsip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip/include/pjsip/sip_config.h
r3586 r3952 82 82 */ 83 83 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 84 91 } endpt; 85 92 … … 252 259 * size exceeds the threshold defined in PJSIP_UDP_SIZE_THRESHOLD. 253 260 * 261 * This option can also be controlled at run-time by the \a disable_tcp_switch 262 * setting in pjsip_cfg_t. 263 * 254 264 * Default is 0 (no). 255 265 */ -
pjproject/branches/1.x/pjsip/src/pjsip/sip_config.c
r3553 r3952 26 26 /* Global settings */ 27 27 { 28 PJSIP_ALLOW_PORT_IN_FROMTO_HDR 28 PJSIP_ALLOW_PORT_IN_FROMTO_HDR, 29 0, 30 PJSIP_DONT_SWITCH_TO_TCP 29 31 }, 30 32 -
pjproject/branches/1.x/pjsip/src/pjsip/sip_util.c
r3832 r3952 1249 1249 pj_assert(tdata->dest_info.addr.count != 0); 1250 1250 1251 #if !defined(PJSIP_DONT_SWITCH_TO_TCP) || PJSIP_DONT_SWITCH_TO_TCP==01252 1251 /* RFC 3261 section 18.1.1: 1253 1252 * If a request is within 200 bytes of the path MTU, or if it is larger … … 1256 1255 * as TCP. 1257 1256 */ 1258 if (tdata->msg->type == PJSIP_REQUEST_MSG && 1257 if (pjsip_cfg()->endpt.disable_tcp_switch==0 && 1258 tdata->msg->type == PJSIP_REQUEST_MSG && 1259 1259 tdata->dest_info.addr.count > 0 && 1260 1260 tdata->dest_info.addr.entry[0].type == PJSIP_TRANSPORT_UDP) … … 1298 1298 } 1299 1299 } 1300 #endif /* !PJSIP_DONT_SWITCH_TO_TCP */1301 1300 1302 1301 /* Process the addresses. */
Note: See TracChangeset
for help on using the changeset viewer.