[asterisk-bugs] [Asterisk 0019317]: FastAGI looping when an error happens on fgets

Asterisk Bug Tracker noreply at bugs.digium.com
Wed May 18 09:05:08 CDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19317 
====================================================================== 
Reported By:                nicchap
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19317
Category:                   Resources/res_agi
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-05-18 09:05 CDT
Last Modified:              2011-05-18 09:05 CDT
====================================================================== 
Summary:                    FastAGI looping when an error happens on fgets
Description: 
Issue 0010553 patched things up when an EAGAIN or EINTR error was received
during the fgets loop. However, when we DO receive one of these errors, the
len variable should NOT be decremented unless we get a valid read res AND
no errno. Otherwise, this permits incomplete AGI requests to filter through
out of the While loop.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-18 09:05 nicchap        New Issue                                    
2011-05-18 09:05 nicchap        Asterisk Version          => SVN             
2011-05-18 09:05 nicchap        Regression                => No              
2011-05-18 09:05 nicchap        SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list