summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2014-08-21 03:43:11 +0000
committerNanang Izzuddin <nanang@teluu.com>2014-08-21 03:43:11 +0000
commit92ea0b65a3946ce3e8b3f7abab7b284bf112a1e1 (patch)
tree548af772155a38079e5cb80e3934fe0e63bcc122
parenta93274018042da66b2ee7b925ed5c0ac7e7c4958 (diff)
Misc (re #1751): fixed occasional failure in pjsip-test & pjnath-test caused by resource leak.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4898 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjnath/src/pjnath-test/concur_test.c2
-rw-r--r--pjnath/src/pjnath-test/stun_sock_test.c6
-rw-r--r--pjsip/src/test/tsx_basic_test.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/pjnath/src/pjnath-test/concur_test.c b/pjnath/src/pjnath-test/concur_test.c
index 9d2fa652..0ab5bf1d 100644
--- a/pjnath/src/pjnath-test/concur_test.c
+++ b/pjnath/src/pjnath-test/concur_test.c
@@ -252,7 +252,7 @@ static int stun_destroy_test(void)
pj_timer_heap_set_lock(test_sess.stun_cfg.timer_heap, test_sess.lock, PJ_TRUE);
pj_assert(status == PJ_SUCCESS);
- status = pj_ioqueue_create(pool, 512, &test_sess.stun_cfg.ioqueue);
+ status = pj_ioqueue_create(pool, PJ_IOQUEUE_MAX_HANDLES, &test_sess.stun_cfg.ioqueue);
pj_assert(status == PJ_SUCCESS);
pj_sock_socket(pj_AF_INET(), pj_SOCK_DGRAM(), 0, &test_sess.server_sock);
diff --git a/pjnath/src/pjnath-test/stun_sock_test.c b/pjnath/src/pjnath-test/stun_sock_test.c
index ebf5a2bd..3b090400 100644
--- a/pjnath/src/pjnath-test/stun_sock_test.c
+++ b/pjnath/src/pjnath-test/stun_sock_test.c
@@ -360,7 +360,7 @@ on_return:
destroy_server(srv);
destroy_client(client);
for (i=0; i<7; ++i)
- handle_events(cfg, 50);
+ handle_events(cfg, 100);
return ret;
}
@@ -429,7 +429,7 @@ on_return:
destroy_server(srv);
destroy_client(client);
for (i=0; i<7; ++i)
- handle_events(cfg, 50);
+ handle_events(cfg, 100);
return ret;
}
@@ -796,7 +796,7 @@ on_return:
destroy_server(srv);
destroy_client(client);
for (i=0; i<7; ++i)
- handle_events(cfg, 50);
+ handle_events(cfg, 100);
return ret;
}
diff --git a/pjsip/src/test/tsx_basic_test.c b/pjsip/src/test/tsx_basic_test.c
index baae9fd3..1a63b539 100644
--- a/pjsip/src/test/tsx_basic_test.c
+++ b/pjsip/src/test/tsx_basic_test.c
@@ -267,7 +267,7 @@ int tsx_destroy_test()
"normal unable to resolve",
&tsx_create_and_send_req,
"sip:user@somehost",
- 10000,
+ 15000,
1
},
{
@@ -275,7 +275,7 @@ int tsx_destroy_test()
&tsx_create_and_send_req,
"sip:user@somehost",
1,
- 10000
+ 15000
},
{
"tcp connect and destroy",