Hi,
I added a parameter to the utility Apache Benchmark (ab) to allow setting the 
socket timeout
...it is currently a hardcoded value at 30 seconds, and this is problematic on 
bad applications that 
have a slight percentage of requests going above that threshold... or worse

Attachment: ab.diff
Description: Binary data


Attachment: ab_man.diff
Description: Binary data

Anyway, I did managed to create a patch for the utility and one for the man 
file. 

        Would u mind merging them?

sample of usage:

        grinder:~ zeph$ nc -l 12345

grinder:support zeph$ time ./ab -n 1 -c 1 http://localhost:12345/
This is ApacheBench, Version 2.3 <$Revision: 1395225 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)...apr_pollset_poll: The timeout specified 
has expired (70007)

real    0m30.058s

        grinder:~ zeph$ nc -l 12345

grinder:support zeph$ time ./ab -s 1 -n 1 -c 1 http://localhost:12345/
This is ApacheBench, Version 2.3 <$Revision: 1395225 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)...apr_pollset_poll: The timeout specified 
has expired (70007)

real    0m1.043s

        grinder:~ zeph$ nc -l 12345

grinder:support zeph$ time ./ab -s 45 -n 1 -c 1 http://localhost:12345/
This is ApacheBench, Version 2.3 <$Revision: 1395225 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)...apr_pollset_poll: The timeout specified 
has expired (70007)

real    0m45.041s

regards,
--
Guido Serra
http://guidoserra.it

Reply via email to