add some warning message for when chan_sip gets overloaded (issue #5530)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6908 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Kevin P. Fleming 20 years ago
parent a15a52208d
commit 3da6bf02c9

@ -11199,9 +11199,14 @@ restartsearch:
if (fastrestart) if (fastrestart)
res = 1; res = 1;
res = ast_io_wait(io, res); res = ast_io_wait(io, res);
if (res > 20)
ast_log(LOG_WARNING, "chan_sip: ast_io_wait ran %d all at once\n", res);
ast_mutex_lock(&monlock); ast_mutex_lock(&monlock);
if (res >= 0) if (res >= 0) {
ast_sched_runq(sched); res = ast_sched_runq(sched);
if (res >= 20)
ast_log(LOG_WARNING, "chan_sip: ast_sched_runq ran %d all at once\n", res);
}
/* needs work to send mwi to realtime peers */ /* needs work to send mwi to realtime peers */
time(&t); time(&t);

Loading…
Cancel
Save