diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2016-06-08 03:17:45 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2016-06-08 03:17:45 +0000 |
commit | a44bcadfa1bc4c3a6067c5921d8eda10d7b24d10 (patch) | |
tree | bc9e0af584e8ee4f4a1aa8a16690bfdbe5d5fc43 /pjnath/src/pjnath-test/concur_test.c | |
parent | fd7ff41eec38181ba154286ca312a16b965aa07c (diff) |
Re #422: Added IPv6 support to PJNATH, changes:
- Deprecated 'pj_ice_strans_cfg.af', if set, the value will be ignored, address family setting is now specified via transport setting, i.e: 'pj_ice_strans_cfg.stun_tp/turn_tp'.
- Deprecated 'pj_ice_strans_cfg.stun/turn', for backward compatibility, this field value will be checked if 'pj_ice_strans_cfg.stun_tp_cnt/turn_tp_cnt' is set to zero.
- Added 'pj_ice_strans_stun_cfg' & 'pj_ice_strans_stun_cfg' and the corresponding 'pj_ice_strans_stun/turn_cfg_default()'
- Added 'pj_ice_strans_cfg.stun_tp/turn_tp' as replacement of 'pj_ice_strans_cfg.stun/turn', it is now an array so app can have multiple STUN/TURN transports.
- Added macro PJ_ICE_MAX_STUN/TURN to specify maximum number of STUN/TURN transports in each ICE component in compile-time.
- Miscellaneous: fixed socket number limit in concurrency test in pjnath-test, updated pjsua_media.c to use new 'pj_ice_strans_cfg' setting.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5339 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath/src/pjnath-test/concur_test.c')
-rw-r--r-- | pjnath/src/pjnath-test/concur_test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pjnath/src/pjnath-test/concur_test.c b/pjnath/src/pjnath-test/concur_test.c index 0ab5bf1d..d30b5ebd 100644 --- a/pjnath/src/pjnath-test/concur_test.c +++ b/pjnath/src/pjnath-test/concur_test.c @@ -26,7 +26,7 @@ /****************************************************************************/ #define WORKER_THREAD_CNT 4 #define SERVER_THREAD_CNT 4 -#define MAX_SOCK_CLIENTS 80 +#define MAX_SOCK_CLIENTS (PJ_IOQUEUE_MAX_HANDLES/2) struct stun_test_session { @@ -219,6 +219,9 @@ static int stun_destroy_test_session(struct stun_test_session *test_sess) } } + /* Give some time to ioqueue to free sockets */ + pj_thread_sleep(PJ_IOQUEUE_KEY_FREE_DELAY); + return 0; } |