Changeset 4032
- Timestamp:
- Apr 10, 2012 3:48:22 AM (12 years ago)
- Location:
- pjproject/branches/1.x/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip/include/pjsip/sip_config.h
r3976 r4032 428 428 429 429 /** 430 * Idle timeout interval to be applied to transports with no usage 431 * before the transport is destroyed. Value is in seconds. 430 * Idle timeout interval to be applied to outgoing transports (i.e. client 431 * side) with no usage before the transport is destroyed. Value is in 432 * seconds. 432 433 * 433 434 * Default: 30 … … 435 436 #ifndef PJSIP_TRANSPORT_IDLE_TIME 436 437 # define PJSIP_TRANSPORT_IDLE_TIME 30 438 #endif 439 440 441 /** 442 * Idle timeout interval to be applied to incoming transports (i.e. server 443 * side) with no usage before the transport is destroyed. Server typically 444 * should let client close the connection, hence set this interval to a large 445 * value. Value is in seconds. 446 * 447 * Default: 600 448 */ 449 #ifndef PJSIP_TRANSPORT_SERVER_IDLE_TIME 450 # define PJSIP_TRANSPORT_SERVER_IDLE_TIME 600 437 451 #endif 438 452 -
pjproject/branches/1.x/pjsip/src/pjsip/sip_transport.c
r3553 r4032 858 858 delay.sec = delay.msec = 0; 859 859 } else { 860 delay.sec = PJSIP_TRANSPORT_IDLE_TIME; 860 delay.sec = (tp->dir==PJSIP_TP_DIR_OUTGOING) ? 861 PJSIP_TRANSPORT_IDLE_TIME : 862 PJSIP_TRANSPORT_SERVER_IDLE_TIME; 861 863 delay.msec = 0; 862 864 }
Note: See TracChangeset
for help on using the changeset viewer.