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 39342] New: - script with large POST input that doesn't read STDIN hangs for 5 minutes
Date Tue, 18 Apr 2006 21:29:47 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=39342>.
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=39342

           Summary: script with large POST input that doesn't read STDIN
                    hangs for 5 minutes
           Product: Apache httpd-2
           Version: 2.0.55
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: prefork
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: dougapache@claar.org


If a form does a POST, and the script that it calls outputs a large amount of
data without reading STDIN, apache will hang for 5 minutes.
An strace shows:

poll
accept -> 13
read 13 -> "POST /twiki/bin/save/..."
pipe(14,15)
pipe(16,17)
pipe(18,19)
clone -------------------------------------->Child
close 14,17,19                              dup(14,0)
                                            dup(17,1)
                                            dup(19,2)
                                            exec(...twiki/bin/view)
write 15, "text=%23...",5540)               write(1, "Set-Cookie...", 171)
write 15, "are%3A+%5C%0",1444 -> EAGAIN     write(1, "<!DOCTYPE html...", 4096)
poll(15, POLLOUT, 300000)

This can be duplicated with a simple script that prints a lot, and a POST that
sends a lot.

-- 
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