From fa3a819e8ba210d7897dfb1925b688632750cfe9 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 26 Apr 2012 09:20:07 +0000 Subject: More re #1465: Set the default idle time to 33 from 30. With 30, some pjsip unit tests fail because the TCP transport is closed prematurely before the test completes. This should not happen in the real life as long as app uses a client transaction to send a request. The unit test uses stateless send which does not add ref_count to the transport, that is why the transport is closed prepaturely before 32 seconds (the transaction timeout interval) git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@4091 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsip/sip_config.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pjsip') diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h index 8efc8814..6b8b328a 100644 --- a/pjsip/include/pjsip/sip_config.h +++ b/pjsip/include/pjsip/sip_config.h @@ -431,10 +431,14 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void) * side) with no usage before the transport is destroyed. Value is in * seconds. * - * Default: 30 + * Note that if the value is put lower than 33 seconds, it may cause some + * pjsip test units to fail. See the comment on the following link: + * https://trac.pjsip.org/repos/ticket/1465#comment:4 + * + * Default: 33 */ #ifndef PJSIP_TRANSPORT_IDLE_TIME -# define PJSIP_TRANSPORT_IDLE_TIME 30 +# define PJSIP_TRANSPORT_IDLE_TIME 33 #endif -- cgit v1.2.3