Misc (re #1751): fixed occasional failure in pjsip-test & pjnath-test caused by resource leak.

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4898 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Nanang Izzuddin 2014-08-21 03:43:11 +00:00
parent 82b348331d
commit 2af6664626
3 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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;
}

View File

@ -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",