diff options
author | Riza Sulistyo <riza@teluu.com> | 2016-06-07 10:07:57 +0000 |
---|---|---|
committer | Riza Sulistyo <riza@teluu.com> | 2016-06-07 10:07:57 +0000 |
commit | c95d1a0f5bbf0d68ba6ab45416d482165bb7c8dc (patch) | |
tree | dd1cc8ff3798d9df09d48e3b2471dfa227b37d1a /pjsip/include | |
parent | 8058df78cebe49a6f8391c9a0b2c0e7bc42c7027 (diff) |
Re #1929: Avoid memory pool growing when doing re-Registration.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5336 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r-- | pjsip/include/pjsip/sip_auth.h | 1 | ||||
-rw-r--r-- | pjsip/include/pjsip/sip_config.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/pjsip/include/pjsip/sip_auth.h b/pjsip/include/pjsip/sip_auth.h index ce262ef9..ba03f600 100644 --- a/pjsip/include/pjsip/sip_auth.h +++ b/pjsip/include/pjsip/sip_auth.h @@ -166,6 +166,7 @@ typedef struct pjsip_cached_auth /** Standard list member */ PJ_DECL_LIST_MEMBER(struct pjsip_cached_auth); + pj_pool_t *pool; /**< Pool for cached auth */ pj_str_t realm; /**< Realm. */ pj_bool_t is_proxy; /**< Server type (401/407) */ pjsip_auth_qop_type qop_value; /**< qop required by server. */ diff --git a/pjsip/include/pjsip/sip_config.h b/pjsip/include/pjsip/sip_config.h index 210c6650..1c974812 100644 --- a/pjsip/include/pjsip/sip_config.h +++ b/pjsip/include/pjsip/sip_config.h @@ -1122,6 +1122,16 @@ PJ_INLINE(pjsip_cfg_t*) pjsip_cfg(void) # define PJSIP_REGISTER_CLIENT_ADD_XUID_PARAM 0 #endif +/** + * Maximum size of pool allowed for auth client session in pjsip_regc. + * After the size exceeds because of Digest authentication processing, + * the pool is reset. + * + * Default is 20 kB + */ +#ifndef PJSIP_AUTH_CACHED_POOL_MAX_SIZE +# define PJSIP_AUTH_CACHED_POOL_MAX_SIZE (20 * 1024) +#endif /***************************************************************************** * SIP Event framework and presence settings. |