Summary:ASTERISK-10545: Read timeouts of less than 1ms result in using the default (6s)
Reporter:Michael FIG (michael-fig)Labels:
Date Opened:2007-10-16 13:33:19Date Closed:2007-10-16 16:17:27
Versions:Frequency of
Environment:Attachments:( 0) asterisk-85883-dont-default-on-small-timeouts.diff
Description:If somebody accidentally uses a Read timeout of less than 0.001, the code currently truncates it to 0, which means use the default.  The attached patch fixes that.
Comments:By: Mark Michelson (mmichelson) 2007-10-16 16:15:52

I'm committing this along with a printed warning letting the user know that we're assuming a 1 ms timeout.

Thanks very much for the patch!

By: Digium Subversion (svnbot) 2007-10-16 16:17:27

Repository: asterisk
Revision: 85965

U   trunk/apps/app_read.c

r85965 | mmichelson | 2007-10-16 16:17:27 -0500 (Tue, 16 Oct 2007) | 6 lines

Fixing app_read so that if a timeout of less than 1 ms is specified,
assume that 1 ms is desired.

(closes issue ASTERISK-10545, reported and patched by michael-fig, with a warning line added by me)