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 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From [EMAIL PROTECTED] 2005-08-31 01:23 ------- Hi Nick, Thanks for taking time to work on this issue. I modified the code as per your suggestion by removing EOF check. I read the CONTENT_LENGTH from env. variable. int cl = atoi(getenv("CONTENT_LENGTH"); char *buf = new char[cl+1]; fgets(buf, cl+1, stdin); When I debugged, it is waiting forever in fgets() call. So, the original bug issue still persists. FYI - The apache version used : 2.0.54 Is the stdin is closed in this case ? Thanks, Paran (In reply to comment #4) > The CGI spec gives you CONTENT_LENGTH. It does NOT give you any form of EOF. > Code that reads *until* EOF is not valid CGI. > > The code posted is confused: you mention fgets, but in fact uses fgetc and > makes a bogus feof check. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
