diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-14 17:41:03 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-14 17:41:03 +0000 |
commit | 63b4561ff007f71ec3ad67435415d3d0d2f712f0 (patch) | |
tree | a46932252c7e0ee0b10f14c464100ed1c282049a /main/channel.c | |
parent | b36371262c8b3b6b81c490cce5a0c6a269a3b9de (diff) |
Increase the retry count when attempting to show channels. This apparently
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: http://svn.digium.com/svn/asterisk/branches/1.4@114117 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/channel.c b/main/channel.c index ff8277746..91dd940c7 100644 --- a/main/channel.c +++ b/main/channel.c @@ -1024,7 +1024,7 @@ static struct ast_channel *channel_find_locked(const struct ast_channel *prev, 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) { @@ -1066,7 +1066,7 @@ static struct ast_channel *channel_find_locked(const struct ast_channel *prev, 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. */ |