httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56832] New: mod_ratelimit error brigade pass failed
Date Sat, 09 Aug 2014 21:01:32 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=56832

            Bug ID: 56832
           Summary: mod_ratelimit error brigade pass failed
           Product: Apache httpd-2
           Version: 2.4.10
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_ratelimit
          Assignee: bugs@httpd.apache.org
          Reporter: tomas@slax.org

I'm running apache with mod_ratelimit, using the following in config file:
SetOutputFilter RATE_LIMIT
SetEnv rate-limit 0

This way I activate Rate-Limit output filter but disable it by setting
rate-limit env variable to 0, so all downloads go in full speed. When any
particular file is to be sent in a slower manner, a php scripts sets
apache_setenv("rate-limit",30) in order to activate the rate limit.

Sometimes I notice in apache log the following line:
[Sat Aug 09 08:20:02.914169 2014] [ratelimit:error] [pid 10795] [client
XXXXX:51962] AH01457: rl: brigade pass failed., referer: XXXX

I've reviewed the source code and I tried to understand how brigades work.
The error message comes from mod_ratelimit.c, when return value of
ap_pass_brigade() is not equal to APR_SUCCESS.

First of all I would like to better understand what happens. Do I understand it
right that once the break is called, so it looks like the file is sent in full
speed, right? Does it interrupt the connection or download?

Is the error "recoverable", I mean, is the user still getting the file he tries
to download? If not, can we make some code adjustments in order to try to "fix"
the problem on the fly, eg. by retrying ap_pass_brigade() call? If the error is
recoverable, can we silence the error message?

Thank you

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

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


Mime
View raw message