httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 44782] (104)Connection reset by peer: ap_content_length_filter: apr_bucket_read() failed
Date Thu, 08 May 2008 07:48:49 GMT

--- Comment #3 from Tony <>  2008-05-08 00:48:48 PST ---
Yes this is a big bug and I don't know why no one from Apache has even
commented on this post. My temporary solution so far is to add this line to
programs before exit:

if ($ENV{'CONTENT_LENGTH'}) {while (<STDIN>){}}

Vinci, you state it is not a problem with GET, but the problem is mainly if you
use "GET" in your application and do not write for a POST. Some bots out there
may try using your GET method forms/links, but instead may send a POST and
that's where the problem is. Plus bots or any malicious user could try sending
HUGE amounts of data via a POST bringing your server down as Apache waits for
the POST data to be read. My solution to prevent this has been to limit how
much of the $ENV{'CONTENT_LENGTH'} I would read in, but with this bug it just
hangs your server until the client has finished sending their POST. The only
solution I've been able to come up with is the one above, but it is band-aide
rather than a fix. I sure wish someone from Apache would at least comment on

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message