summaryrefslogtreecommitdiff
path: root/pjnath/src/pjnath-test/concur_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjnath/src/pjnath-test/concur_test.c')
-rw-r--r--pjnath/src/pjnath-test/concur_test.c5
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;
}