[asterisk-commits] russell: trunk r110396 - in /trunk: ./ main/autoservice.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 20 18:14:14 CDT 2008


Author: russell
Date: Thu Mar 20 18:14:13 2008
New Revision: 110396

URL: http://svn.digium.com/view/asterisk?view=rev&rev=110396
Log:
Merged revisions 110395 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r110395 | russell | 2008-03-20 18:13:56 -0500 (Thu, 20 Mar 2008) | 9 lines

Shorten the ast_waitfor() timeout from 500 ms to 50 ms in the autoservice thread.
This really should not make a difference except in very rare cases.  That case would
be that all of the channels in autoservice are not generating any frames.  In that
case, this change reduces the potential amount of time that a thread waits in
ast_autoservice_stop() for the autoservice thread to wrap back around to the beginning
of its loop.

(closes issue #12266, reported by dimas)

........

Modified:
    trunk/   (props changed)
    trunk/main/autoservice.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/autoservice.c
URL: http://svn.digium.com/view/asterisk/trunk/main/autoservice.c?view=diff&rev=110396&r1=110395&r2=110396
==============================================================================
--- trunk/main/autoservice.c (original)
+++ trunk/main/autoservice.c Thu Mar 20 18:14:13 2008
@@ -87,7 +87,7 @@
 	for (;;) {
 		struct ast_channel *mons[MAX_AUTOMONS], *chan;
 		struct asent *as;
-		int x = 0, ms = 500;
+		int x = 0, ms = 50;
 
 		AST_LIST_LOCK(&aslist);
 




More information about the asterisk-commits mailing list