httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34295] New: - CGI execution issue - stdin hung
Date Mon, 04 Apr 2005 23:33:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34295>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34295

           Summary: CGI execution issue - stdin hung
           Product: Apache httpd-2.0
           Version: 2.0.53
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: critical
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: paran.umapathy@ca.com
                CC: paran.umapathy@ca.com


Hello,

We were running CGI successfully in Apache 1.3.33. We have CGI form which sends 
the request parameters in POST.

The QUERY_STRING will be "htype=Lvl4&repname=Report1"

Since, it is POST, the QUERY_STRING will be read from stdin.

The following code reads from file pointer (In this case it will be stdin) 
until it finds a "stop" character. (In this case it is '&')

This code works perfect in Apache 1.3.33. 

But in Apache 2, it hangs at 
fgets(stdin).

Please check whether Apache2 has either closed or reopened STDIN. 

siStatus siFmakeWord (char stop, FILE* pFile, int& cl, siString& sWord)
{
    // Output string to null
    sWord.Set (NULL);

    if (pFile == NULL) {
	errRegister (siERR_BAD_ARG);
	return siFAILED;
    }

    while (!feof (pFile) && cl != 0) {
	cl--;
	int ch = fgetc (pFile);

        -- blah blah --
    }

    return siOK;

} // siFmakeWord

** End of code snippet **

Any clue is greatly appreciated. Support for Apache 2 is very critical for our 
product.

We are using standard httpd.conf file. No changes were made.

Thanks

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message