summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2012-04-26 09:20:07 +0000
committerBenny Prijono <bennylp@teluu.com>2012-04-26 09:20:07 +0000
commitfa3a819e8ba210d7897dfb1925b688632750cfe9 (patch)
tree80b92ff6a1b49d13baa0f4aa8a5f4ba9c6b85326
parent9683edf167e5ba635e4c0e9355757c830f36f4ff (diff)
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
-rw-r--r--pjsip/include/pjsip/sip_config.h8
1 files changed, 6 insertions, 2 deletions
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