https://issues.apache.org/bugzilla/show_bug.cgi?id=55646
Bug ID: 55646
Summary: non-2xx responses are not considered errors
Product: Apache httpd-2
Version: 2.5-HEAD
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: support
Assignee: [email protected]
Reporter: [email protected]
$ ab -X localhost:3128 -n 10 -c 3 http://www.mirrorservice.org/
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking www.mirrorservice.org [through localhost:3128] (be
patient).....done
Server Software: squid/3.1.19
Server Hostname: www.mirrorservice.org
Server Port: 80
Document Path: /
Document Length: 3140 bytes
Concurrency Level: 3
Time taken for tests: 0.165 seconds
Complete requests: 10
Failed requests: 2
(Connect: 0, Receive: 0, Length: 2, Exceptions: 0)
Write errors: 0
Non-2xx responses: 8
Total transferred: 34998 bytes
HTML transferred: 31566 bytes
Requests per second: 60.66 [#/sec] (mean)
Time per request: 49.458 [ms] (mean)
Time per request: 16.486 [ms] (mean, across all concurrent requests)
Transfer rate: 207.31 [Kbytes/sec] received
The "non-2xx responses" in this case are 403 errors from the proxy. I'm very
surprised that these aren't considered "Failed requests", while a 200 OK
response with a different length is considered "failed". Other people are
surprised by this too:
*
http://stackoverflow.com/questions/579450/load-testing-with-ab-fake-failed-requests-length#comment-24011206
* https://issues.apache.org/bugzilla/show_bug.cgi?id=42040
Please would you consider changing this, so that non-2xx responses are errors
but different length responses are not? (or at least optionally so.)
I know that issue #42040 and friends are about adding a flag which makes
different length responses be not considered as errors; I think this should be
on by default, and the option should be to turn it off and require all
responses to be the same length. Thanks!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]