[asterisk-dev] [Code Review] Fix timeouts for ast_waitfordigit_full

rmudgett reviewboard at asterisk.org
Wed Sep 12 12:57:55 CDT 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2109/#review7047
-----------------------------------------------------------



/branches/1.8/main/channel.c
<https://reviewboard.asterisk.org/r/2109/#comment13648>

    Add curly braces


- rmudgett


On Sept. 12, 2012, 12:48 p.m., David Lee wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2109/
> -----------------------------------------------------------
> 
> (Updated Sept. 12, 2012, 12:48 p.m.)
> 
> 
> Review request for Asterisk Developers and Mark Michelson.
> 
> 
> Summary
> -------
> 
> ast_waitfordigit_full would simply pass its timeout to ast_waitfor_nandfds, expecting it to decrement the timeout by however many milliseconds were waited. This is a problem if it consistently waits less than 1ms, the timeout will never be decremented, and we wait... FOREVER!
> 
> This patch instead has ast_waitfordigit_full manage the timeout itself.
> 
> 
> This addresses bug ASTERISK-20375.
>     https://issues.asterisk.org/jira/browse/ASTERISK-20375
> 
> 
> Diffs
> -----
> 
>   /branches/1.8/main/channel.c 372975 
> 
> Diff: https://reviewboard.asterisk.org/r/2109/diff
> 
> 
> Testing
> -------
> 
> Mark confirmed that with the not-cleaned-up version of this patch, it fixed ASTERISK-20375. The cleanup consisted of changing variable names, adding comments, removing debug logging.
> 
> 
> Thanks,
> 
> David
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120912/d1382534/attachment.htm>


More information about the asterisk-dev mailing list