eddyleo / doubango

Automatically exported from code.google.com/p/doubango
0 stars 0 forks source link

tsk_timer issue #139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
doubango\tinySAK\src\tsk_timer.c line:527
in function:
static int tsk_timer_cmp(const tsk_object_t *obj1, const tsk_object_t *obj2)

return (int)(t1->timeout - t2->timeout);

when t1's timeout is too big(more than 32 bit), this method probable return 
negative, than t1 become the first timer in the list, but never can be 
raised(timer main thread run in infinite loop ).

It happens on SIP server's response has a big expires,than the stack global 
timer doesn't work again.

Original issue reported on code.google.com by licho...@gmail.com on 13 Sep 2012 at 4:48

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 14 Sep 2012 at 4:07