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:
parent
82b348331d
commit
2af6664626
|
@ -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_timer_heap_set_lock(test_sess.stun_cfg.timer_heap, test_sess.lock, PJ_TRUE);
|
||||||
pj_assert(status == PJ_SUCCESS);
|
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_assert(status == PJ_SUCCESS);
|
||||||
|
|
||||||
pj_sock_socket(pj_AF_INET(), pj_SOCK_DGRAM(), 0, &test_sess.server_sock);
|
pj_sock_socket(pj_AF_INET(), pj_SOCK_DGRAM(), 0, &test_sess.server_sock);
|
||||||
|
|
|
@ -360,7 +360,7 @@ on_return:
|
||||||
destroy_server(srv);
|
destroy_server(srv);
|
||||||
destroy_client(client);
|
destroy_client(client);
|
||||||
for (i=0; i<7; ++i)
|
for (i=0; i<7; ++i)
|
||||||
handle_events(cfg, 50);
|
handle_events(cfg, 100);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -429,7 +429,7 @@ on_return:
|
||||||
destroy_server(srv);
|
destroy_server(srv);
|
||||||
destroy_client(client);
|
destroy_client(client);
|
||||||
for (i=0; i<7; ++i)
|
for (i=0; i<7; ++i)
|
||||||
handle_events(cfg, 50);
|
handle_events(cfg, 100);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -796,7 +796,7 @@ on_return:
|
||||||
destroy_server(srv);
|
destroy_server(srv);
|
||||||
destroy_client(client);
|
destroy_client(client);
|
||||||
for (i=0; i<7; ++i)
|
for (i=0; i<7; ++i)
|
||||||
handle_events(cfg, 50);
|
handle_events(cfg, 100);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -267,7 +267,7 @@ int tsx_destroy_test()
|
||||||
"normal unable to resolve",
|
"normal unable to resolve",
|
||||||
&tsx_create_and_send_req,
|
&tsx_create_and_send_req,
|
||||||
"sip:user@somehost",
|
"sip:user@somehost",
|
||||||
10000,
|
15000,
|
||||||
1
|
1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -275,7 +275,7 @@ int tsx_destroy_test()
|
||||||
&tsx_create_and_send_req,
|
&tsx_create_and_send_req,
|
||||||
"sip:user@somehost",
|
"sip:user@somehost",
|
||||||
1,
|
1,
|
||||||
10000
|
15000
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"tcp connect and destroy",
|
"tcp connect and destroy",
|
||||||
|
|
Loading…
Reference in New Issue