cleared an issue someone was seeing when attempting to show channels when
the load was high.
(closes issue #11667)
Reported by: falves11
Patches:
11677.txt uploaded by russell (license 2)
Tested by: falves11
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@114117
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
struct ast_channel *c;
const struct ast_channel *_prev = prev;
- for (retries = 0; retries < 10; retries++) {
+ for (retries = 0; retries < 200; retries++) {
int done;
AST_LIST_LOCK(&channels);
AST_LIST_TRAVERSE(&channels, c, chan_list) {
if (!done) {
if (option_debug)
ast_log(LOG_DEBUG, "Avoiding %s for channel '%p'\n", msg, c);
- if (retries == 9) {
+ if (retries == 199) {
/* We are about to fail due to a deadlock, so report this
* while we still have the list lock.
*/