- Timestamp:
- Jun 8, 2009 3:30:38 PM (15 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_config.h
r2754 r2756 234 234 * as TCP. 235 235 * 236 * Disable the behavior of automatic switching to TCP whenever UDP packet 237 * size exceeds the threshold defined in PJSIP_UDP_SIZE_THRESHOLD. 238 * 239 * Default is 0 (no). 240 */ 241 #ifndef PJSIP_DONT_SWITCH_TO_TCP 242 # define PJSIP_DONT_SWITCH_TO_TCP 0 243 #endif 244 245 246 /** 236 247 * This setting controls the threshold of the UDP packet, which if it's 237 * larger than this value the request will be sent with TCP. Default is 238 * 1300 bytes. 248 * larger than this value the request will be sent with TCP. This setting 249 * is useful only when PJSIP_DONT_SWITCH_TO_TCP is set to 0. 250 * 251 * Default is 1300 bytes. 239 252 */ 240 253 #ifndef PJSIP_UDP_SIZE_THRESHOLD 241 254 # define PJSIP_UDP_SIZE_THRESHOLD 1300 242 255 #endif 256 243 257 244 258 /** -
pjproject/trunk/pjsip/src/pjsip/sip_util.c
r2746 r2756 1191 1191 pj_memcpy( &stateless_data->addr, addr, sizeof(pjsip_server_addresses)); 1192 1192 1193 #if !defined(PJSIP_DONT_SWITCH_TO_TCP) || PJSIP_DONT_SWITCH_TO_TCP==0 1193 1194 /* RFC 3261 section 18.1.1: 1194 1195 * If a request is within 200 bytes of the path MTU, or if it is larger … … 1235 1236 } 1236 1237 } 1238 #endif /* !PJSIP_DONT_SWITCH_TO_TCP */ 1237 1239 1238 1240 /* Process the addresses. */
Note: See TracChangeset
for help on using the changeset viewer.