[asterisk-bugs] [Asterisk 0017912]: ao2_t_callback of dialog_needdestroy is called every loop of do_monitor
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Aug 26 09:13:22 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=17912
======================================================================
Reported By: schmidts
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 17912
Category: Channels/chan_sip/General
Reproducibility: always
Severity: major
Priority: normal
Status: confirmed
Asterisk Version: 1.6.2.11
JIRA: SWP-2124
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-08-25 10:05 CDT
Last Modified: 2010-08-26 09:13 CDT
======================================================================
Summary: ao2_t_callback of dialog_needdestroy is called every
loop of do_monitor
Description:
the ao2_t_callback is fired in every loop of do_monitor which cause
asterisk to slow down if there are many open dialogs. I wrote a patch to
count up to 10 seconds and then launch the ao2_t_callback only once. the
time is only count between the start and end of ast_io_wait cause there is
a polling (waiting) done.
======================================================================
----------------------------------------------------------------------
(0126365) schmidts (reporter) - 2010-08-26 09:13
https://issues.asterisk.org/view.php?id=17912#c126365
----------------------------------------------------------------------
i think i found a problem of this solution by myself. if dialog_needdestroy
is not called when asterisk is shut down, the memory will not become free,
so there is a leak with this. is there a way to call the ao2_t_callback if
the thread should be closed? i dont know much about this pthreadtestcancel
function.
Issue History
Date Modified Username Field Change
======================================================================
2010-08-26 09:13 schmidts Note Added: 0126365
======================================================================
More information about the asterisk-bugs
mailing list